Class/Object

coursier.core

Resolution

Related Docs: object Resolution | package core

Permalink

final class Resolution extends Product with Serializable

State of a dependency resolution.

Done if method isDone returns true.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Resolution
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Resolution()

    Permalink
  2. new Resolution(rootDependencies: Seq[Dependency], dependencySet: DependencySet, forceVersions: Map[Module, String], conflicts: Set[Dependency], projectCache: Map[ModuleVersion, (ArtifactSource, Project)], errorCache: Map[ModuleVersion, Seq[String]], finalDependenciesCache: Map[Dependency, Seq[Dependency]], filter: Option[(Dependency) ⇒ Boolean], reconciliation: Option[(Module) ⇒ Reconciliation], osInfo: Os, jdkVersion: Option[Version], userActivations: Option[Map[String, Boolean]], mapDependencies: Option[(Dependency) ⇒ Dependency], extraProperties: Seq[(String, String)], forceProperties: Map[String, String], defaultConfiguration: Configuration)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addToErrorCache(entries: Iterable[(ModuleVersion, Seq[String])]): Resolution

    Permalink
  5. def addToProjectCache(projects: (ModuleVersion, (ArtifactSource, Project))*): Resolution

    Permalink
  6. def artifacts(types: Set[Type], classifiers: Option[Seq[Classifier]], classpathOrder: Boolean): Seq[Artifact]

    Permalink
  7. def artifacts(types: Set[Type], classifiers: Option[Seq[Classifier]]): Seq[Artifact]

    Permalink
  8. def artifacts(classifiers: Option[Seq[Classifier]]): Seq[Artifact]

    Permalink
  9. def artifacts(types: Set[Type]): Seq[Artifact]

    Permalink
  10. def artifacts(): Seq[Artifact]

    Permalink
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def canEqual(obj: Any): Boolean

    Permalink
    Definition Classes
    Resolution → Equals
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val conflicts: Set[Dependency]

    Permalink
  15. val defaultConfiguration: Configuration

    Permalink
  16. lazy val dependencies: Set[Dependency]

    Permalink
  17. def dependenciesOf(dep: Dependency, withRetainedVersions: Boolean, withFallbackConfig: Boolean): Seq[Dependency]

    Permalink
  18. def dependenciesOf(dep: Dependency, withRetainedVersions: Boolean): Seq[Dependency]

    Permalink
  19. def dependenciesOf(dep: Dependency): Seq[Dependency]

    Permalink
  20. def dependenciesWithRetainedVersions: Set[Dependency]

    Permalink
  21. def dependencyArtifacts(classifiers: Option[Seq[Classifier]], classpathOrder: Boolean): Seq[(Dependency, Publication, Artifact)]

    Permalink
  22. def dependencyArtifacts(classifiers: Option[Seq[Classifier]]): Seq[(Dependency, Publication, Artifact)]

    Permalink
  23. def dependencyArtifacts(): Seq[(Dependency, Publication, Artifact)]

    Permalink
  24. def dependencyManagementMissing(project: Project): Set[ModuleVersion]

    Permalink

    Missing modules in cache, to get the full list of dependencies of project, taking dependency management / inheritance into account.

    Missing modules in cache, to get the full list of dependencies of project, taking dependency management / inheritance into account.

    Note that adding the missing modules to the cache may unveil other missing modules, so these modules should be added to the cache, and dependencyManagementMissing checked again for new missing modules.

  25. def dependencyManagementRequirements(project: Project): Set[ModuleVersion]

    Permalink

    Required modules for the dependency management of project.

  26. val dependencySet: DependencySet

    Permalink
  27. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    Resolution → Equals → AnyRef → Any
  29. val errorCache: Map[ModuleVersion, Seq[String]]

    Permalink
  30. def errors: Seq[(ModuleVersion, Seq[String])]

    Permalink

    Returns errors on dependencies

    Returns errors on dependencies

    returns

    errors

  31. val extraProperties: Seq[(String, String)]

    Permalink
  32. val filter: Option[(Dependency) ⇒ Boolean]

    Permalink
  33. val finalDependenciesCache: Map[Dependency, Seq[Dependency]]

    Permalink
  34. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. val forceProperties: Map[String, String]

    Permalink
  36. val forceVersions: Map[Module, String]

    Permalink
  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. lazy val hashCode: Int

    Permalink
    Definition Classes
    Resolution → AnyRef → Any
  39. lazy val isDone: Boolean

    Permalink

    Whether the resolution is done.

  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. val jdkVersion: Option[Version]

    Permalink
  42. val mapDependencies: Option[(Dependency) ⇒ Dependency]

    Permalink
  43. def minDependencies: Set[Dependency]

    Permalink

    Minimized dependency set.

    Minimized dependency set. Returns dependencies with no redundancy.

    E.g. dependencies may contains several dependencies towards module org:name:version, a first one excluding A and B, and a second one excluding A and C. In practice, B and C will be brought anyway, because the first dependency doesn't exclude C, and the second one doesn't exclude B. So having both dependencies is equivalent to having only one dependency towards org:name:version, excluding just A.

    The same kind of substitution / filtering out can be applied with configurations. If dependencies contains several dependencies towards org:name:version, a first one bringing its configuration "runtime", a second one "compile", and the configuration mapping of org:name:version says that "runtime" extends "compile", then all the dependencies brought by the latter will be brought anyway by the former, so that the latter can be removed.

    returns

    A minimized dependencies, applying this kind of substitutions.

  44. lazy val missingFromCache: Set[ModuleVersion]

    Permalink

    The modules we miss some info about.

  45. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  46. lazy val newDependencies: Set[Dependency]

    Permalink

    The final next dependency set, stripped of no more required ones.

  47. lazy val nextDependenciesAndConflicts: (Seq[Dependency], Seq[Dependency], Map[Module, String])

    Permalink

    The "next" dependency set, made of the current dependencies and their transitive dependencies, trying to solve version conflicts.

    The "next" dependency set, made of the current dependencies and their transitive dependencies, trying to solve version conflicts. Transitive dependencies are calculated with the current cache.

    May contain dependencies added in previous iterations, but no more required. These are filtered below, see newDependencies.

    Returns a tuple made of the conflicting dependencies, all the dependencies, and the retained version of each module.

  48. final def nextIfNoMissing: Resolution

    Permalink

    If no module info is missing, the next state of the resolution, which can be immediately calculated.

    If no module info is missing, the next state of the resolution, which can be immediately calculated. Else, the current resolution.

    Annotations
    @tailrec()
  49. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  50. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  51. def orderedDependencies: Seq[Dependency]

    Permalink
  52. val osInfo: Os

    Permalink
  53. def productArity: Int

    Permalink
    Definition Classes
    Resolution → Product
  54. def productElement(n: Int): Any

    Permalink
    Definition Classes
    Resolution → Product
  55. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  56. def productPrefix: String

    Permalink
    Definition Classes
    Resolution → Product
  57. val projectCache: Map[ModuleVersion, (ArtifactSource, Project)]

    Permalink
  58. lazy val reconciledVersions: Map[Module, String]

    Permalink
  59. val reconciliation: Option[(Module) ⇒ Reconciliation]

    Permalink
  60. lazy val remainingDependencies: Set[Dependency]

    Permalink

    Returns dependencies from the "next" dependency set, filtering out those that are no more required.

    Returns dependencies from the "next" dependency set, filtering out those that are no more required.

    The versions of all the dependencies returned are erased (emptied).

  61. def retainedVersions: Map[Module, String]

    Permalink
  62. lazy val reverseDependencies: Map[Dependency, Vector[Dependency]]

    Permalink

    Returns a map giving the dependencies that brought each of the dependency of the "next" dependency set.

    Returns a map giving the dependencies that brought each of the dependency of the "next" dependency set.

    The versions of all the dependencies returned are erased (emptied).

  63. val rootDependencies: Seq[Dependency]

    Permalink
  64. def subset(dependencies: Seq[Dependency]): Resolution

    Permalink

    Removes from this Resolution dependencies that are not in dependencies neither brought transitively by them.

    Removes from this Resolution dependencies that are not in dependencies neither brought transitively by them.

    This keeps the versions calculated by this Resolution. The common dependencies of different subsets will thus be guaranteed to have the same versions.

  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  66. def toString(): String

    Permalink
    Definition Classes
    Resolution → AnyRef → Any
  67. lazy val transitiveDependencies: Seq[Dependency]

    Permalink

    Transitive dependencies of the current dependencies, according to what there currently is in cache.

    Transitive dependencies of the current dependencies, according to what there currently is in cache.

    No attempt is made to solve version conflicts here.

  68. val userActivations: Option[Map[String, Boolean]]

    Permalink
  69. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. def withConflicts(conflicts: Set[Dependency]): Resolution

    Permalink
  73. def withDefaultConfiguration(defaultConfiguration: Configuration): Resolution

    Permalink
  74. def withDependencies(dependencies: Set[Dependency]): Resolution

    Permalink
  75. def withDependencyManagement(project: Project): Project

    Permalink

    Add dependency management / inheritance related items to project, from what's available in cache.

    Add dependency management / inheritance related items to project, from what's available in cache.

    It is recommended to have fetched what dependencyManagementMissing returned prior to calling this.

  76. def withDependencySet(dependencySet: DependencySet): Resolution

    Permalink
  77. def withErrorCache(errorCache: Map[ModuleVersion, Seq[String]]): Resolution

    Permalink
  78. def withExtraProperties(extraProperties: Seq[(String, String)]): Resolution

    Permalink
  79. def withFilter(filter: Option[(Dependency) ⇒ Boolean]): Resolution

    Permalink
  80. def withFinalDependenciesCache(finalDependenciesCache: Map[Dependency, Seq[Dependency]]): Resolution

    Permalink
  81. def withForceProperties(forceProperties: Map[String, String]): Resolution

    Permalink
  82. def withForceVersions(forceVersions: Map[Module, String]): Resolution

    Permalink
  83. def withJdkVersion(jdkVersion: Option[Version]): Resolution

    Permalink
  84. def withMapDependencies(mapDependencies: Option[(Dependency) ⇒ Dependency]): Resolution

    Permalink
  85. def withOsInfo(osInfo: Os): Resolution

    Permalink
  86. def withProjectCache(projectCache: Map[ModuleVersion, (ArtifactSource, Project)]): Resolution

    Permalink
  87. def withReconciliation(reconciliation: Option[(Module) ⇒ Reconciliation]): Resolution

    Permalink
  88. def withRootDependencies(rootDependencies: Seq[Dependency]): Resolution

    Permalink
  89. def withUserActivations(userActivations: Option[Map[String, Boolean]]): Resolution

    Permalink

Deprecated Value Members

  1. def artifacts(withOptional: Boolean): Seq[Artifact]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.0-M8) Use artifacts overload accepting types and classifiers instead

  2. def classifiersArtifacts(classifiers: Seq[String]): Seq[Artifact]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.0-M8) Use the artifacts overload accepting types and classifiers instead

  3. def dependencyArtifacts(withOptional: Boolean): Seq[(Dependency, Artifact)]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.0-M8) Use dependencyArtifacts overload accepting classifiers instead

  4. def dependencyClassifiersArtifacts(classifiers: Seq[String]): Seq[(Dependency, Artifact)]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.0-M8) Use dependencyArtifacts overload accepting classifiers instead

  5. def metadataErrors: Seq[(ModuleVersion, Seq[String])]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.1.0) Use errors instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped