mirror of https://github.com/sbt/sbt.git
[2.x] fix: Fixes scalaCompilerBridgeBin (#9506)
**Problem/Solution** Fixes scalaCompilerBridgeBin leaking project names across different builds.
This commit is contained in:
parent
f59c12559f
commit
f6cb28bd22
|
|
@ -762,13 +762,14 @@ object Defaults extends BuildCommon with DefExtra {
|
|||
clean.value
|
||||
(ThisBuild / publish / clean).value
|
||||
},
|
||||
scalaCompilerBridgeBin := Def
|
||||
.ifS(Def.task {
|
||||
scalaCompilerBridgeBin := Def.uncached {
|
||||
if {
|
||||
val sv = scalaVersion.value
|
||||
val hasSbtBridge = ScalaArtifacts.isScala3(sv) || ScalaArtifacts.hasScala2SbtBridge(sv)
|
||||
hasSbtBridge
|
||||
})(Compiler.compilerBridgeFromUpdate)(Def.task(Vector.empty))
|
||||
.value,
|
||||
} then Compiler.compilerBridgeFromUpdate.value
|
||||
else Vector.empty
|
||||
},
|
||||
scalaCompilerBridgeJars := (Def.taskDyn {
|
||||
val s = streams.value
|
||||
val b = scalaCompilerBridgeBin.value
|
||||
|
|
|
|||
Loading…
Reference in New Issue