Skip to content

Commit aac79df

Browse files
committed
Fix old Dotty plugin compat
**Problem** scala/scala3#20157 identified that `sbt-dotty/dotty-knowledge.i17` scripted test fails on sbt 1.10.0-RC2. The regression happened in https://github.com/sbt/sbt/pull/7480/files#diff-6d9589bfb3f1247d2eace99bab7e928590337680d1aebd087d9da286586fba77L739-L740 where global setting was removed, and moved to project level. **Solution** This restores the global setting that is apparently referenced by now defunct Dotty plugin.
1 parent 8fe6e4e commit aac79df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/src/main/scala/sbt/Defaults.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,10 @@ object Defaults extends BuildCommon {
735735
Seq(
736736
auxiliaryClassFiles :== Nil,
737737
incOptions := IncOptions.of(),
738+
// TODO: Kept for old Dotty plugin. Remove on sbt 2.x
739+
classpathOptions :== ClasspathOptionsUtil.boot,
740+
// TODO: Kept for old Dotty plugin. Remove on sbt 2.x
741+
console / classpathOptions :== ClasspathOptionsUtil.repl,
738742
compileOrder :== CompileOrder.Mixed,
739743
javacOptions :== Nil,
740744
scalacOptions :== Nil,

0 commit comments

Comments
 (0)