Class SpringDependencyManagementPluginEntry

java.lang.Object
org.openrewrite.gradle.trait.SpringDependencyManagementPluginEntry
All Implemented Interfaces:
org.openrewrite.trait.Trait<org.openrewrite.java.tree.J.MethodInvocation>

public class SpringDependencyManagementPluginEntry extends Object implements org.openrewrite.trait.Trait<org.openrewrite.java.tree.J.MethodInvocation>
  • Constructor Details

    • SpringDependencyManagementPluginEntry

      public SpringDependencyManagementPluginEntry()
  • Method Details

    • withGroupArtifactVersion

      public SpringDependencyManagementPluginEntry withGroupArtifactVersion(org.openrewrite.semver.DependencyMatcher matcher, @Nullable String newGroup, @Nullable String newArtifact, @Nullable String newVersion, @Nullable String versionPattern, org.openrewrite.maven.table.MavenMetadataFailures metadataFailures, org.openrewrite.ExecutionContext ctx)
    • getVersionVariable

      public @Nullable String getVersionVariable()
      Gets the version variable name if the dependency's version is specified via a variable reference in a GString or Kotlin StringTemplate.
      Returns:
      The variable name used for the version, or null if the version is a literal or cannot be determined