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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy