java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.io.LockFileIO

public final class LockFileIO extends Object
Utility class for lock file I/O.
  • Method Details

    • allProjectVersionRefsFromLockfiles

      public static Set<org.commonjava.atlas.maven.ident.ref.ProjectVersionRef> allProjectVersionRefsFromLockfiles(File locksRootPath) throws IOException
      Returns a set containing all project version refs from lock files in the given path. This is not recursive.
      Parameters:
      locksRootPath - the path to the root for the lock files
      Returns:
      the set of all project version refs
      Throws:
      IOException - if an error occurs
    • readProjectVersionRefLocksOfFile

      public static Set<org.commonjava.atlas.maven.ident.ref.ProjectVersionRef> readProjectVersionRefLocksOfFile(File lockfile)
    • getLockFiles

      public static List<File> getLockFiles(File locksRoot) throws IOException
      Throws:
      IOException
    • updateLockfiles

      public static void updateLockfiles(org.gradle.api.logging.Logger logger, File directory, Map<String,org.commonjava.atlas.maven.ident.ref.ProjectVersionRef> alignedDependencies)