mirror of https://github.com/sbt/sbt.git
Merge pull request #4542 from smarter/less-dotty
Remove Dotty handling in scalaInstance
This commit is contained in:
commit
55c46c6ba8
|
|
@ -737,10 +737,7 @@ object Defaults extends BuildCommon {
|
||||||
val allJars = toolReport.modules.flatMap(_.artifacts.map(_._2))
|
val allJars = toolReport.modules.flatMap(_.artifacts.map(_._2))
|
||||||
val libraryJar = file(ScalaArtifacts.LibraryID)
|
val libraryJar = file(ScalaArtifacts.LibraryID)
|
||||||
val binVersion = scalaBinaryVersion.value
|
val binVersion = scalaBinaryVersion.value
|
||||||
val compilerJar =
|
val compilerJar = file(ScalaArtifacts.CompilerID)
|
||||||
if (ScalaInstance.isDotty(scalaVersion.value))
|
|
||||||
file(ScalaArtifacts.dottyID(binVersion))
|
|
||||||
else file(ScalaArtifacts.CompilerID)
|
|
||||||
new ScalaInstance(
|
new ScalaInstance(
|
||||||
scalaVersion.value,
|
scalaVersion.value,
|
||||||
makeClassLoader(state.value)(allJars.toList),
|
makeClassLoader(state.value)(allJars.toList),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue