mirror of https://github.com/sbt/sbt.git
Merge branch '1.0.x' into merge-1.0.x-into-1.x
* 1.0.x: (28 commits) Split compiler bridge tests to another subproject Implement compiler bridge for 2.13.0-M2 Add yourkit acknoledgement in the README "sbt '++ 2.13.0-M2!' compile" does not work with sbt 1.0.0 Add header to cached hashing spec Add headers to missing files Fix #332: Add sbt-header back to the build Update sbt-scalafmt to 1.12 Make classpath hashing more lightweight Fix #442: Name hash of value class should include underlying type source-dependencies/value-class-underlying: fix test Ignore null in generic lambda tparams Improve and make scripted parallel Fix #436: Remove annoying log4j scripted exception Fix #127: Use `unexpanded` name instead of `name` Add pending test case for issue/127 source-dependencies / patMat-scope workaround Fixes undercompilation on inheritance on same source Add real reproduction case for sbt/zinc#417 Add trait-trait-212 for Scala 2.12.3 ... Conflicts: internal/zinc-apiinfo/src/main/scala/sbt/internal/inc/ClassToAPI.scala project/build.properties zinc/src/main/scala/sbt/internal/inc/MixedAnalyzingCompiler.scala The ClassToAPI conflict is due to: * https://github.com/sbt/zinc/pull/393 (a 1.x PR), conflicting with * https://github.com/sbt/zinc/pull/446 (a 1.0.x PR). The build.properties conflict is due to different PRs bumping sbt.version from 1.0.0 to 1.0.2 to 1.0.3. (#413, #418, #453). The MixedAnalyzingCompiler conflict is due to: * https://github.com/sbt/zinc/pull/427 (a 1.x PR), conflicting with * https://github.com/sbt/zinc/pull/452 (a 1.0.x PR).
This commit is contained in:
commit
7e855b8323
|
|
@ -42,9 +42,12 @@ private[sbt] object ZincComponentCompiler {
|
|||
def compilerBridgeId(scalaVersion: String) = {
|
||||
// Defaults to bridge for 2.12 for Scala versions bigger than 2.12.x
|
||||
scalaVersion match {
|
||||
case sc if (sc startsWith "2.10.") => "compiler-bridge_2.10"
|
||||
case sc if (sc startsWith "2.11.") => "compiler-bridge_2.11"
|
||||
case _ => "compiler-bridge_2.12"
|
||||
case sc if (sc startsWith "2.10.") => "compiler-bridge_2.10"
|
||||
case sc if (sc startsWith "2.11.") => "compiler-bridge_2.11"
|
||||
case sc if (sc startsWith "2.12.") => "compiler-bridge_2.12"
|
||||
case sc if (sc startsWith "2.13.0-M") => "compiler-bridge_2.13.0-M2"
|
||||
case sc if (sc startsWith "2.13.0-RC") => "compiler-bridge_2.13.0-M2"
|
||||
case _ => "compiler-bridge_2.13"
|
||||
}
|
||||
}
|
||||
import xsbti.ArtifactInfo.SbtOrganization
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ class ZincComponentCompilerSpec extends BridgeProviderSpecification {
|
|||
val scala2121 = "2.12.1"
|
||||
val scala2122 = "2.12.2"
|
||||
val scala2123 = "2.12.3"
|
||||
val scala2130M2 = "2.13.0-M2"
|
||||
|
||||
val logger = ConsoleLogger()
|
||||
it should "compile the bridge for Scala 2.10.5 and 2.10.6" in {
|
||||
|
|
@ -28,4 +29,8 @@ class ZincComponentCompilerSpec extends BridgeProviderSpecification {
|
|||
IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala2122) should exist)
|
||||
IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala2123) should exist)
|
||||
}
|
||||
|
||||
it should "compile the bridge for Scala 2.13.0-M2" in {
|
||||
IO.withTemporaryDirectory(t => getCompilerBridge(t, logger, scala2130M2) should exist)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue