Class GradleDependencyConfiguration

java.lang.Object
org.openrewrite.gradle.marker.GradleDependencyConfiguration
All Implemented Interfaces:
Serializable

public class GradleDependencyConfiguration extends Object implements Serializable
See Also:
  • Constructor Details

    • GradleDependencyConfiguration

      public GradleDependencyConfiguration()
  • Method Details

    • allExtendsFrom

      public List<GradleDependencyConfiguration> allExtendsFrom()
      List the configurations which are extended by the given configuration. Assuming a hierarchy like:
           implementation
           |> compileClasspath
           |> runtimeClasspath
           |> testImplementation
              |> testCompileClasspath
              |> testRuntimeClasspath
       
      When querying "testCompileClasspath" this function will return [testImplementation, implementation].
    • findRequestedDependency

      @Nullable public @Nullable org.openrewrite.maven.tree.Dependency findRequestedDependency(String groupId, String artifactId)
    • findResolvedDependency

      @Nullable public @Nullable org.openrewrite.maven.tree.ResolvedDependency findResolvedDependency(String groupId, String artifactId)
    • fromToolingModel

      public static Map<String,GradleDependencyConfiguration> fromToolingModel(Map<String,GradleDependencyConfiguration> toolingConfigurations)