Class VersionsProps


  • public final class VersionsProps
    extends java.lang.Object
    A versions.props file.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.stream.Stream<org.gradle.api.artifacts.DependencyConstraint> constructConstraints​(com.palantir.gradle.versions.DependencyConstraintCreator constraintCreator)  
      FuzzyPatternResolver getFuzzyResolver()  
      java.util.Optional<java.lang.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().
      java.util.Optional<java.lang.String> getStarVersion​(org.gradle.api.artifacts.ModuleIdentifier dependency)
      Get a recommended version for a module if it matches one of the non-exact platforms.
      static VersionsProps loadFromFile​(java.nio.file.Path path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadFromFile

        public static VersionsProps loadFromFile​(java.nio.file.Path path)
      • constructConstraints

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

        public java.util.Optional<java.lang.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 java.util.Optional<java.lang.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().