mirror of https://github.com/sbt/sbt.git
Merge pull request #2965 from cunei/wip-bridge
Update scalaCompilerBridgeSource
This commit is contained in:
commit
105fcb5237
|
|
@ -19,13 +19,13 @@ object Compiler {
|
||||||
private[sbt] def defaultCompilerBridgeSource(sv: String): ModuleID =
|
private[sbt] def defaultCompilerBridgeSource(sv: String): ModuleID =
|
||||||
VersionNumber(sv) match {
|
VersionNumber(sv) match {
|
||||||
case VersionNumber(ns, _, _) if (ns.size == 3) && (ns(0) == 2) && (ns(1) <= 10) => scalaCompilerBridgeSource2_10
|
case VersionNumber(ns, _, _) if (ns.size == 3) && (ns(0) == 2) && (ns(1) <= 10) => scalaCompilerBridgeSource2_10
|
||||||
case _ => scalaCompilerBridgeSource2_11
|
case _ => scalaCompilerBridgeSource2_12
|
||||||
}
|
}
|
||||||
private[sbt] def scalaCompilerBridgeSource2_10: ModuleID =
|
private[sbt] def scalaCompilerBridgeSource2_10: ModuleID =
|
||||||
ModuleID(xsbti.ArtifactInfo.SbtOrganization, "compiler-bridge_2.10",
|
ModuleID(xsbti.ArtifactInfo.SbtOrganization, "compiler-bridge_2.10",
|
||||||
ComponentCompiler.incrementalVersion).withConfigurations(Some("component")).sources()
|
ComponentCompiler.incrementalVersion).withConfigurations(Some("component")).sources()
|
||||||
private[sbt] def scalaCompilerBridgeSource2_11: ModuleID =
|
private[sbt] def scalaCompilerBridgeSource2_12: ModuleID =
|
||||||
ModuleID(xsbti.ArtifactInfo.SbtOrganization, "compiler-bridge_2.11",
|
ModuleID(xsbti.ArtifactInfo.SbtOrganization, "compiler-bridge_2.12",
|
||||||
ComponentCompiler.incrementalVersion).withConfigurations(Some("component")).sources()
|
ComponentCompiler.incrementalVersion).withConfigurations(Some("component")).sources()
|
||||||
|
|
||||||
/** Inputs necessary to run the incremental compiler. */
|
/** Inputs necessary to run the incremental compiler. */
|
||||||
|
|
@ -108,7 +108,7 @@ object Compiler {
|
||||||
{
|
{
|
||||||
val scalaProvider = app.provider.scalaProvider
|
val scalaProvider = app.provider.scalaProvider
|
||||||
val instance = ScalaInstance(scalaProvider.version, scalaProvider.launcher)
|
val instance = ScalaInstance(scalaProvider.version, scalaProvider.launcher)
|
||||||
val sourceModule = scalaCompilerBridgeSource2_11
|
val sourceModule = scalaCompilerBridgeSource2_12
|
||||||
compilers(instance, cpOptions, None, ivyConfiguration, fileToStore, sourceModule)
|
compilers(instance, cpOptions, None, ivyConfiguration, fileToStore, sourceModule)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue