mirror of https://github.com/sbt/sbt.git
Merge pull request #4403 from eed3si9n/wip/boot-dependencyresolution
Fix resolver for compiler bridge
This commit is contained in:
commit
9eb42e8768
|
|
@ -88,3 +88,5 @@ object SlashSyntax {
|
||||||
final class RichScope(protected val scope: Scope) extends HasSlashKey
|
final class RichScope(protected val scope: Scope) extends HasSlashKey
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private[sbt] object SlashSyntax0 extends SlashSyntax
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,7 @@ import sbt.internal.inc.{
|
||||||
MixedAnalyzingCompiler,
|
MixedAnalyzingCompiler,
|
||||||
ScalaInstance
|
ScalaInstance
|
||||||
}
|
}
|
||||||
|
import sbt.SlashSyntax0._
|
||||||
|
|
||||||
object Defaults extends BuildCommon {
|
object Defaults extends BuildCommon {
|
||||||
final val CacheDirectoryName = "cache"
|
final val CacheDirectoryName = "cache"
|
||||||
|
|
@ -518,7 +519,7 @@ object Defaults extends BuildCommon {
|
||||||
globalLock = launcher.globalLock,
|
globalLock = launcher.globalLock,
|
||||||
componentProvider = app.provider.components,
|
componentProvider = app.provider.components,
|
||||||
secondaryCacheDir = Option(zincDir),
|
secondaryCacheDir = Option(zincDir),
|
||||||
dependencyResolution = dependencyResolution.value,
|
dependencyResolution = bootDependencyResolution.value,
|
||||||
compilerBridgeSource = scalaCompilerBridgeSource.value,
|
compilerBridgeSource = scalaCompilerBridgeSource.value,
|
||||||
scalaJarsTarget = zincDir,
|
scalaJarsTarget = zincDir,
|
||||||
log = streams.value.log
|
log = streams.value.log
|
||||||
|
|
@ -2361,7 +2362,10 @@ object Classpaths {
|
||||||
}
|
}
|
||||||
} tag (Tags.Update, Tags.Network)).value
|
} tag (Tags.Update, Tags.Network)).value
|
||||||
)
|
)
|
||||||
) ++ Seq(bootIvyConfiguration := (ivyConfiguration in updateSbtClassifiers).value)
|
) ++ Seq(
|
||||||
|
bootIvyConfiguration := (updateSbtClassifiers / ivyConfiguration).value,
|
||||||
|
bootDependencyResolution := (updateSbtClassifiers / dependencyResolution).value
|
||||||
|
)
|
||||||
|
|
||||||
def classifiersModuleTask: Initialize[Task[GetClassifiersModule]] =
|
def classifiersModuleTask: Initialize[Task[GetClassifiersModule]] =
|
||||||
Def.task {
|
Def.task {
|
||||||
|
|
|
||||||
|
|
@ -360,6 +360,7 @@ object Keys {
|
||||||
val ivyConfigurations = settingKey[Seq[Configuration]]("The defined configurations for dependency management. This may be different from the configurations for Project settings.").withRank(BSetting)
|
val ivyConfigurations = settingKey[Seq[Configuration]]("The defined configurations for dependency management. This may be different from the configurations for Project settings.").withRank(BSetting)
|
||||||
// This setting was created to work around the limitation of derived tasks not being able to use task-scoped task: ivyConfiguration in updateSbtClassifiers
|
// This setting was created to work around the limitation of derived tasks not being able to use task-scoped task: ivyConfiguration in updateSbtClassifiers
|
||||||
val bootIvyConfiguration = taskKey[IvyConfiguration]("General dependency management (Ivy) settings, configured to retrieve sbt's components.").withRank(DTask)
|
val bootIvyConfiguration = taskKey[IvyConfiguration]("General dependency management (Ivy) settings, configured to retrieve sbt's components.").withRank(DTask)
|
||||||
|
val bootDependencyResolution = taskKey[DependencyResolution]("Dependency resolution to retrieve sbt's components.").withRank(CTask)
|
||||||
val moduleSettings = taskKey[ModuleSettings]("Module settings, which configure dependency management for a specific module, such as a project.").withRank(DTask)
|
val moduleSettings = taskKey[ModuleSettings]("Module settings, which configure dependency management for a specific module, such as a project.").withRank(DTask)
|
||||||
val unmanagedBase = settingKey[File]("The default directory for manually managed libraries.").withRank(ASetting)
|
val unmanagedBase = settingKey[File]("The default directory for manually managed libraries.").withRank(ASetting)
|
||||||
val updateConfiguration = settingKey[UpdateConfiguration]("Configuration for resolving and retrieving managed dependencies.").withRank(DSetting)
|
val updateConfiguration = settingKey[UpdateConfiguration]("Configuration for resolving and retrieving managed dependencies.").withRank(DSetting)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue