Package org.openrewrite.maven.trait
Class MavenDependency
java.lang.Object
org.openrewrite.maven.trait.MavenDependency
- All Implemented Interfaces:
org.openrewrite.trait.Trait<org.openrewrite.xml.tree.Xml.Tag>
public class MavenDependency
extends Object
implements org.openrewrite.trait.Trait<org.openrewrite.xml.tree.Xml.Tag>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringfindNewerVersion(String groupId, String artifactId, @Nullable String currentVersion, org.openrewrite.maven.tree.MavenResolutionResult mrr, MavenMetadataFailures metadataFailures, org.openrewrite.semver.VersionComparator versionComparator, org.openrewrite.ExecutionContext ctx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.trait.Trait
getCursor, getTree
-
Constructor Details
-
MavenDependency
public MavenDependency()
-
-
Method Details
-
findNewerVersion
public static @Nullable String findNewerVersion(String groupId, String artifactId, @Nullable String currentVersion, org.openrewrite.maven.tree.MavenResolutionResult mrr, MavenMetadataFailures metadataFailures, org.openrewrite.semver.VersionComparator versionComparator, org.openrewrite.ExecutionContext ctx) throws MavenDownloadingException - Throws:
MavenDownloadingException
-