@@ -339,10 +339,11 @@ object Build {
339
339
// - publishes its own empty artifact "dotty" that depends on "dotty-library" and "dotty-compiler",
340
340
// this is only necessary for compatibility with sbt which currently hardcodes the "dotty" artifact name
341
341
lazy val dotty = project.in(file(" ." )).asDottyRoot(NonBootstrapped )
342
- lazy val `dotty-bootstrapped` = project.asDottyRoot(Bootstrapped ).disablePlugins( ScriptedPlugin )
343
- lazy val `dotty-optimised` = project.asDottyRoot(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
342
+ lazy val `dotty-bootstrapped` = project.asDottyRoot(Bootstrapped )
343
+ lazy val `dotty-optimised` = project.asDottyRoot(BootstrappedOptimised )
344
344
345
345
lazy val `dotty-interfaces` = project.in(file(" interfaces" )).
346
+ disablePlugins(ScriptedPlugin ).
346
347
settings(commonScala2Settings). // Java-only project, so this is fine
347
348
settings(
348
349
// Do not append Scala versions to the generated artifacts
@@ -420,8 +421,8 @@ object Build {
420
421
)
421
422
422
423
lazy val `dotty-doc` = project.in(file(" doc-tool" )).asDottyDoc(NonBootstrapped )
423
- lazy val `dotty-doc-bootstrapped` = project.in(file(" doc-tool" )).asDottyDoc(Bootstrapped ).disablePlugins( ScriptedPlugin )
424
- lazy val `dotty-doc-optimised` = project.in(file(" doc-tool" )).asDottyDoc(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
424
+ lazy val `dotty-doc-bootstrapped` = project.in(file(" doc-tool" )).asDottyDoc(Bootstrapped )
425
+ lazy val `dotty-doc-optimised` = project.in(file(" doc-tool" )).asDottyDoc(BootstrappedOptimised )
425
426
426
427
def dottyDoc (implicit mode : Mode ): Project = mode match {
427
428
case NonBootstrapped => `dotty-doc`
@@ -543,7 +544,7 @@ object Build {
543
544
if path.contains(" scala-library" ) ||
544
545
// FIXME: currently needed for tests referencing scalac internals
545
546
path.contains(" scala-reflect" ) ||
546
- // FIXME: should go away when xml literal parsing is removed
547
+ // used for tests that compile xml
547
548
path.contains(" scala-xml" ) ||
548
549
// used for tests that compile dotty
549
550
path.contains(" scala-asm" ) ||
@@ -707,8 +708,8 @@ object Build {
707
708
if (mode == NonBootstrapped ) nonBootstrapedDottyCompilerSettings else bootstrapedDottyCompilerSettings
708
709
709
710
lazy val `dotty-compiler` = project.in(file(" compiler" )).asDottyCompiler(NonBootstrapped )
710
- lazy val `dotty-compiler-bootstrapped` = project.in(file(" compiler" )).asDottyCompiler(Bootstrapped ).disablePlugins( ScriptedPlugin )
711
- lazy val `dotty-compiler-optimised` = project.in(file(" compiler" )).asDottyCompiler(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
711
+ lazy val `dotty-compiler-bootstrapped` = project.in(file(" compiler" )).asDottyCompiler(Bootstrapped )
712
+ lazy val `dotty-compiler-optimised` = project.in(file(" compiler" )).asDottyCompiler(BootstrappedOptimised )
712
713
713
714
def dottyCompiler (implicit mode : Mode ): Project = mode match {
714
715
case NonBootstrapped => `dotty-compiler`
@@ -722,8 +723,8 @@ object Build {
722
723
)
723
724
724
725
lazy val `dotty-library` = project.in(file(" library" )).asDottyLibrary(NonBootstrapped )
725
- lazy val `dotty-library-bootstrapped` : Project = project.in(file(" library" )).asDottyLibrary(Bootstrapped ).disablePlugins( ScriptedPlugin )
726
- lazy val `dotty-library-optimised` : Project = project.in(file(" library" )).asDottyLibrary(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
726
+ lazy val `dotty-library-bootstrapped` : Project = project.in(file(" library" )).asDottyLibrary(Bootstrapped )
727
+ lazy val `dotty-library-optimised` : Project = project.in(file(" library" )).asDottyLibrary(BootstrappedOptimised )
727
728
728
729
def dottyLibrary (implicit mode : Mode ): Project = mode match {
729
730
case NonBootstrapped => `dotty-library`
@@ -764,7 +765,7 @@ object Build {
764
765
)
765
766
766
767
lazy val `dotty-sbt-bridge` = project.in(file(" sbt-bridge" )).asDottySbtBridge(NonBootstrapped )
767
- lazy val `dotty-sbt-bridge-bootstrapped` = project.in(file(" sbt-bridge" )).asDottySbtBridge(Bootstrapped ).disablePlugins( ScriptedPlugin )
768
+ lazy val `dotty-sbt-bridge-bootstrapped` = project.in(file(" sbt-bridge" )).asDottySbtBridge(Bootstrapped )
768
769
769
770
lazy val `dotty-language-server` = project.in(file(" language-server" )).
770
771
dependsOn(dottyCompiler(Bootstrapped )).
@@ -829,8 +830,8 @@ object Build {
829
830
).disablePlugins(ScriptedPlugin )
830
831
831
832
lazy val `dotty-bench` = project.in(file(" bench" )).asDottyBench(NonBootstrapped )
832
- lazy val `dotty-bench-bootstrapped` = project.in(file(" bench" )).asDottyBench(Bootstrapped ).disablePlugins( ScriptedPlugin )
833
- lazy val `dotty-bench-optimised` = project.in(file(" bench" )).asDottyBench(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
833
+ lazy val `dotty-bench-bootstrapped` = project.in(file(" bench" )).asDottyBench(Bootstrapped )
834
+ lazy val `dotty-bench-optimised` = project.in(file(" bench" )).asDottyBench(BootstrappedOptimised )
834
835
835
836
// Depend on dotty-library so that sbt projects using dotty automatically
836
837
// depend on the dotty-library
@@ -1133,8 +1134,8 @@ object Build {
1133
1134
)
1134
1135
1135
1136
lazy val dist = project.asDist(NonBootstrapped )
1136
- lazy val `dist-bootstrapped` = project.asDist(Bootstrapped ).disablePlugins( ScriptedPlugin )
1137
- lazy val `dist-optimised` = project.asDist(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
1137
+ lazy val `dist-bootstrapped` = project.asDist(Bootstrapped )
1138
+ lazy val `dist-optimised` = project.asDist(BootstrappedOptimised )
1138
1139
1139
1140
// /** A sandbox to play with the Scala.js back-end of dotty.
1140
1141
// *
@@ -1182,6 +1183,7 @@ object Build {
1182
1183
1183
1184
// FIXME: we do not aggregate `bin` because its tests delete jars, thus breaking other tests
1184
1185
def asDottyRoot (implicit mode : Mode ): Project = project.withCommonSettings.
1186
+ disablePlugins(ScriptedPlugin ).
1185
1187
aggregate(`dotty-interfaces`, dottyLibrary, dottyCompiler, dottyDoc, dottySbtBridgeReference).
1186
1188
bootstrappedAggregate(`scala-library`, `scala-compiler`, `scala-reflect`, scalap, `dotty-language-server`).
1187
1189
dependsOn(dottyCompiler).
@@ -1191,31 +1193,37 @@ object Build {
1191
1193
)
1192
1194
1193
1195
def asDottyCompiler (implicit mode : Mode ): Project = project.withCommonSettings.
1196
+ disablePlugins(ScriptedPlugin ).
1194
1197
dependsOn(`dotty-interfaces`).
1195
1198
dependsOn(dottyLibrary).
1196
1199
settings(dottyCompilerSettings)
1197
1200
1198
1201
def asDottyLibrary (implicit mode : Mode ): Project = project.withCommonSettings.
1202
+ disablePlugins(ScriptedPlugin ).
1199
1203
settings(dottyLibrarySettings).
1200
1204
bootstrappedSettings(
1201
1205
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called.
1202
1206
scalacOptions in Compile ++= Seq (" -sourcepath" , (scalaSource in Compile ).value.getAbsolutePath)
1203
1207
)
1204
1208
1205
1209
def asDottyDoc (implicit mode : Mode ): Project = project.withCommonSettings.
1210
+ disablePlugins(ScriptedPlugin ).
1206
1211
dependsOn(dottyCompiler, dottyCompiler % " test->test" ).
1207
1212
settings(dottyDocSettings)
1208
1213
1209
1214
def asDottySbtBridge (implicit mode : Mode ): Project = project.withCommonSettings.
1215
+ disablePlugins(ScriptedPlugin ).
1210
1216
dependsOn(dottyCompiler % Provided ).
1211
1217
settings(dottySbtBridgeSettings)
1212
1218
1213
1219
def asDottyBench (implicit mode : Mode ): Project = project.withCommonSettings.
1220
+ disablePlugins(ScriptedPlugin ).
1214
1221
dependsOn(dottyCompiler).
1215
1222
settings(commonBenchmarkSettings).
1216
1223
enablePlugins(JmhPlugin )
1217
1224
1218
1225
def asDist (implicit mode : Mode ): Project = project.
1226
+ disablePlugins(ScriptedPlugin ).
1219
1227
enablePlugins(PackPlugin ).
1220
1228
withCommonSettings.
1221
1229
dependsOn(`dotty-interfaces`, dottyCompiler, dottyLibrary, dottyDoc).
0 commit comments