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
|
clean.value
|
||||||
(ThisBuild / publish / clean).value
|
(ThisBuild / publish / clean).value
|
||||||
},
|
},
|
||||||
scalaCompilerBridgeBin := Def
|
scalaCompilerBridgeBin := Def.uncached {
|
||||||
.ifS(Def.task {
|
if {
|
||||||
val sv = scalaVersion.value
|
val sv = scalaVersion.value
|
||||||
val hasSbtBridge = ScalaArtifacts.isScala3(sv) || ScalaArtifacts.hasScala2SbtBridge(sv)
|
val hasSbtBridge = ScalaArtifacts.isScala3(sv) || ScalaArtifacts.hasScala2SbtBridge(sv)
|
||||||
hasSbtBridge
|
hasSbtBridge
|
||||||
})(Compiler.compilerBridgeFromUpdate)(Def.task(Vector.empty))
|
} then Compiler.compilerBridgeFromUpdate.value
|
||||||
.value,
|
else Vector.empty
|
||||||
|
},
|
||||||
scalaCompilerBridgeJars := (Def.taskDyn {
|
scalaCompilerBridgeJars := (Def.taskDyn {
|
||||||
val s = streams.value
|
val s = streams.value
|
||||||
val b = scalaCompilerBridgeBin.value
|
val b = scalaCompilerBridgeBin.value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue