Package org.openrewrite.semver
Class DependencyMatcher
java.lang.Object
org.openrewrite.semver.DependencyMatcher
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDependencyMatcher
(String groupPattern, String artifactPattern, @Nullable VersionComparator versionComparator) -
Method Summary
Modifier and TypeMethodDescriptionstatic Validated
boolean
isValidVersion
(@Nullable String currentVersion, String newVersion) boolean
boolean
upgrade
(String currentVersion, Collection<String> availableVersions)
-
Field Details
-
STANDARD_OPTION_DESCRIPTION
- See Also:
-
-
Constructor Details
-
DependencyMatcher
public DependencyMatcher(String groupPattern, String artifactPattern, @Nullable @Nullable VersionComparator versionComparator)
-
-
Method Details
-
build
-
matches
-
matches
-
isValidVersion
-
upgrade
-