Class VersionsProps

java.lang.Object
com.palantir.gradle.versions.VersionsProps

public final class VersionsProps extends Object
A versions.props file.
  • Method Details

    • getFuzzyResolver

      public FuzzyPatternResolver getFuzzyResolver()
    • loadFromFile

      public static VersionsProps loadFromFile(Path path)
    • fromLines

      public static VersionsProps fromLines(List<String> lines, Path path)
    • constructConstraints

      public Stream<org.gradle.api.artifacts.DependencyConstraint> constructConstraints(com.palantir.gradle.versions.DependencyConstraintCreator constraintCreator)
    • getStarVersion

      public Optional<String> getStarVersion(org.gradle.api.artifacts.ModuleIdentifier dependency)
      Get a recommended version for a module if it matches one of the non-exact platforms. This is necessary for direct dependency injection, which is not supported by virtual platforms. See gradle#7954 for more details.
    • getPlatform

      public Optional<String> getPlatform(org.gradle.api.artifacts.ModuleIdentifier dependency)
      Returns the most specific platform for the given dependency, unless the dependency has a more specific exact version defined, in which case return Optional.empty().