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

    • getDirectResolved

      public List<org.openrewrite.maven.tree.ResolvedDependency> getDirectResolved()
    • getResolved

      public List<org.openrewrite.maven.tree.ResolvedDependency> getResolved()
      The list of all dependencies resolved for this configuration, including transitive dependencies.
    • 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

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

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

      public void unsafeSetExtendsFrom(List<GradleDependencyConfiguration> extendsFrom)