mirror of https://github.com/sbt/sbt.git
Merge pull request #8420 from eed3si9n/wip/bump-zinc
[2.x] fix: Scala 3.8 REPL support
This commit is contained in:
commit
07e33bc51e
|
|
@ -165,20 +165,22 @@ object Compiler:
|
||||||
yield file
|
yield file
|
||||||
|
|
||||||
val allCompilerJars = toolReport.modules.flatMap(_.artifacts.map(_._2))
|
val allCompilerJars = toolReport.modules.flatMap(_.artifacts.map(_._2))
|
||||||
val allDocJars =
|
val extraToolJars = extraToolConf match
|
||||||
|
case Some(extra) =>
|
||||||
fullReport
|
fullReport
|
||||||
.configuration(Configurations.ScalaDocTool)
|
.configuration(extra)
|
||||||
.map(updateLibraryToCompileConfiguration)
|
.map(updateLibraryToCompileConfiguration)
|
||||||
.toSeq
|
.toSeq
|
||||||
.flatMap(_.modules)
|
.flatMap(_.modules)
|
||||||
.flatMap(_.artifacts.map(_._2))
|
.flatMap(_.artifacts.map(_._2))
|
||||||
|
case None => Nil
|
||||||
val libraryJars = ScalaArtifacts.libraryIds(sv).flatMap(file)
|
val libraryJars = ScalaArtifacts.libraryIds(sv).flatMap(file)
|
||||||
|
|
||||||
makeScalaInstance(
|
makeScalaInstance(
|
||||||
sv,
|
sv,
|
||||||
libraryJars,
|
libraryJars,
|
||||||
allCompilerJars,
|
allCompilerJars,
|
||||||
allDocJars,
|
extraToolJars,
|
||||||
Keys.state.value,
|
Keys.state.value,
|
||||||
Keys.scalaInstanceTopLoader.value,
|
Keys.scalaInstanceTopLoader.value,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ object Dependencies {
|
||||||
|
|
||||||
// sbt modules
|
// sbt modules
|
||||||
private val ioVersion = nightlyVersion.getOrElse("1.10.5")
|
private val ioVersion = nightlyVersion.getOrElse("1.10.5")
|
||||||
val zincVersion = nightlyVersion.getOrElse("2.0.0-M9")
|
val zincVersion = nightlyVersion.getOrElse("2.0.0-M10")
|
||||||
|
|
||||||
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion
|
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue