com.autonomousapps.advice.TransitiveDependency.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
/**
* A dependency that has not been declared, but which is included by one or more other dependencies,
* transitively.
*/
data class TransitiveDependency(
/**
* A tuple of an `identifier` and a resolved version. See [Dependency].
*/
override val dependency: Dependency,
/**
* The "parent" dependencies that all contribute this transitive dependency.
*/
val parents: Set,
/**
* The variants in which this transitive dependency is used (e.g., "main", "debug", "release", ...).
* May be empty if we are unable to determine this.
*/
val variants: Set = emptySet()
) : HasDependency, Comparable {
override fun compareTo(other: TransitiveDependency): Int = dependency.compareTo(other.dependency)
}