com.autonomousapps.advice.ComponentWithTransitives.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-analysis-gradle-plugin Show documentation
Show all versions of dependency-analysis-gradle-plugin Show documentation
Analyzes dependency usage in Android and JVM projects
package com.autonomousapps.advice
/**
* Represents a dependency that is declared in the `dependencies {}` block of a build script. This
* dependency may or may not be used, and has zero or more transitive dependencies that _are_ used
* ([usedTransitiveDependencies]).
*/
data class ComponentWithTransitives(
/**
* A tuple of an `identifier` and a resolved version. See [Dependency].
*/
override val dependency: Dependency,
/**
* If this direct dependency has any transitive dependencies that are used, they will be in this
* set.
*
* In group:artifact form. E.g.,
* 1. "javax.inject:javax.inject"
* 2. ":my-project"
*/
val usedTransitiveDependencies: MutableSet
) : HasDependency, Comparable {
override fun compareTo(other: ComponentWithTransitives): Int {
return dependency.compareTo(other.dependency)
}
}