All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.autonomousapps.advice.TransitiveDependency.kt Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy