class DependencyResolution extends AnyRef
Library management API to resolve dependencies.
- Alphabetic
- By Inheritance
- DependencyResolution
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
directDependenciesNames(module: ModuleDescriptor): String
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
moduleDescriptor(moduleId: ModuleID, directDependencies: Vector[ModuleID], scalaModuleInfo: Option[ScalaModuleInfo]): ModuleDescriptor
Build a ModuleDescriptor that describes a subproject with dependencies.
Build a ModuleDescriptor that describes a subproject with dependencies.
- moduleId
The root module for which to create a
ModuleDescriptor
.- directDependencies
The direct dependencies of the module.
- scalaModuleInfo
The information about the Scala version used, if any.
- returns
A
ModuleDescriptor
describing a subproject and its dependencies.
-
def
moduleDescriptor(moduleSetting: ModuleDescriptorConfiguration): ModuleDescriptor
Builds a ModuleDescriptor that describes a subproject with dependencies.
Builds a ModuleDescriptor that describes a subproject with dependencies.
- moduleSetting
It contains the information about the module including the dependencies.
- returns
A
ModuleDescriptor
describing a subproject and its dependencies.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
retrieve(module: ModuleDescriptor, retrieveDirectory: File, log: Logger): Either[UnresolvedWarning, Vector[File]]
Resolves the given module's dependencies, and retrieves the artifacts to a directory.
Resolves the given module's dependencies, and retrieves the artifacts to a directory.
- module
The module to be resolved.
- retrieveDirectory
The directory to retrieve the files.
- log
The logger.
- returns
The result, either an unresolved warning or a sequence of files.
-
def
retrieve(dependencyId: ModuleID, scalaModuleInfo: Option[ScalaModuleInfo], retrieveDirectory: File, log: Logger): Either[UnresolvedWarning, Vector[File]]
Resolves the given dependency, and retrieves the artifacts to a directory.
Resolves the given dependency, and retrieves the artifacts to a directory.
- dependencyId
The dependency to be resolved.
- scalaModuleInfo
The module info about Scala.
- retrieveDirectory
The directory to retrieve the files.
- log
The logger.
- returns
The result, either an unresolved warning or a sequence of files.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(module: ModuleDescriptor, configuration: UpdateConfiguration, uwconfig: UnresolvedWarningConfiguration, log: Logger): Either[UnresolvedWarning, UpdateReport]
Resolves the given module's dependencies performing a retrieval.
Resolves the given module's dependencies performing a retrieval.
- module
The module to be resolved.
- configuration
The update configuration.
- uwconfig
The configuration to handle unresolved warnings.
- log
The logger.
- returns
The result, either an unresolved warning or an update report. Note that this update report will or will not be successful depending on the
missingOk
option.
-
def
updateClassifiers(config: GetClassifiersConfiguration, uwconfig: UnresolvedWarningConfiguration, artifacts: Vector[(String, ModuleID, Artifact, File)], log: Logger): Either[UnresolvedWarning, UpdateReport]
Creates explicit artifacts for each classifier in
config.module
, and then attempts to resolve them directly.Creates explicit artifacts for each classifier in
config.module
, and then attempts to resolve them directly. This is for Maven compatibility, where these artifacts are not "published" in the POM, so they don't end up in the Ivy that sbt generates for them either.
Artifacts can be obtained from calling toSeq on UpdateReport.
In addition, retrieves specific Ivy artifacts if they have one of the requestedconfig.configuration.types
.- config
important to set
config.configuration.types
to only allow artifact types that can correspond to "classified" artifacts (sources and javadocs).
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
wrapDependencyInModule(dependencyId: ModuleID, scalaModuleInfo: Option[ScalaModuleInfo]): ModuleDescriptor
Returns a
ModuleDescriptor
that depends ondependencyId
.Returns a
ModuleDescriptor
that depends ondependencyId
.- dependencyId
The module to depend on.
- scalaModuleInfo
The information about the Scala verson used, if any.
- returns
A
ModuleDescriptor
that depends ondependencyId
.
-
def
wrapDependencyInModule(dependencyId: ModuleID): ModuleDescriptor
Returns a
ModuleDescriptor
that depends ondependencyId
.Returns a
ModuleDescriptor
that depends ondependencyId
.- dependencyId
The module to depend on.
- returns
A
ModuleDescriptor
that depends ondependencyId
.