@@ -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`
@@ -501,7 +502,8 @@ object Build {
501
502
// get libraries onboard
502
503
libraryDependencies ++= Seq (
503
504
" org.scala-lang.modules" % " scala-asm" % " 6.0.0-scala-1" , // used by the backend
504
- (" org.scala-lang.modules" %% " scala-xml" % " 1.0.6" ).withDottyCompat(scalaVersion.value),
505
+ // FIXME: Not needed, but should be on the compiler CP
506
+ (" org.scala-lang.modules" %% " scala-xml" % " 1.1.0" ).withDottyCompat(scalaVersion.value),
505
507
" org.scala-lang" % " scala-library" % scalacVersion % " test" ,
506
508
Dependencies .compilerInterface(sbtVersion.value),
507
509
),
@@ -542,7 +544,7 @@ object Build {
542
544
if path.contains(" scala-library" ) ||
543
545
// FIXME: currently needed for tests referencing scalac internals
544
546
path.contains(" scala-reflect" ) ||
545
- // FIXME: should go away when xml literal parsing is removed
547
+ // used for tests that compile xml
546
548
path.contains(" scala-xml" ) ||
547
549
// used for tests that compile dotty
548
550
path.contains(" scala-asm" ) ||
@@ -652,6 +654,7 @@ object Build {
652
654
653
655
def runCompilerMain (repl : Boolean = false ) = Def .inputTaskDyn {
654
656
val jars = packageAll.value
657
+ println(jars)
655
658
val dottyLib = jars(" dotty-library" )
656
659
val dottyCompiler = jars(" dotty-compiler" )
657
660
val args0 : List [String ] = spaceDelimited(" <arg>" ).parsed.toList
@@ -706,8 +709,8 @@ object Build {
706
709
if (mode == NonBootstrapped ) nonBootstrapedDottyCompilerSettings else bootstrapedDottyCompilerSettings
707
710
708
711
lazy val `dotty-compiler` = project.in(file(" compiler" )).asDottyCompiler(NonBootstrapped )
709
- lazy val `dotty-compiler-bootstrapped` = project.in(file(" compiler" )).asDottyCompiler(Bootstrapped ).disablePlugins( ScriptedPlugin )
710
- lazy val `dotty-compiler-optimised` = project.in(file(" compiler" )).asDottyCompiler(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
712
+ lazy val `dotty-compiler-bootstrapped` = project.in(file(" compiler" )).asDottyCompiler(Bootstrapped )
713
+ lazy val `dotty-compiler-optimised` = project.in(file(" compiler" )).asDottyCompiler(BootstrappedOptimised )
711
714
712
715
def dottyCompiler (implicit mode : Mode ): Project = mode match {
713
716
case NonBootstrapped => `dotty-compiler`
@@ -721,8 +724,8 @@ object Build {
721
724
)
722
725
723
726
lazy val `dotty-library` = project.in(file(" library" )).asDottyLibrary(NonBootstrapped )
724
- lazy val `dotty-library-bootstrapped` : Project = project.in(file(" library" )).asDottyLibrary(Bootstrapped ).disablePlugins( ScriptedPlugin )
725
- lazy val `dotty-library-optimised` : Project = project.in(file(" library" )).asDottyLibrary(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
727
+ lazy val `dotty-library-bootstrapped` : Project = project.in(file(" library" )).asDottyLibrary(Bootstrapped )
728
+ lazy val `dotty-library-optimised` : Project = project.in(file(" library" )).asDottyLibrary(BootstrappedOptimised )
726
729
727
730
def dottyLibrary (implicit mode : Mode ): Project = mode match {
728
731
case NonBootstrapped => `dotty-library`
@@ -763,7 +766,7 @@ object Build {
763
766
)
764
767
765
768
lazy val `dotty-sbt-bridge` = project.in(file(" sbt-bridge" )).asDottySbtBridge(NonBootstrapped )
766
- lazy val `dotty-sbt-bridge-bootstrapped` = project.in(file(" sbt-bridge" )).asDottySbtBridge(Bootstrapped ).disablePlugins( ScriptedPlugin )
769
+ lazy val `dotty-sbt-bridge-bootstrapped` = project.in(file(" sbt-bridge" )).asDottySbtBridge(Bootstrapped )
767
770
768
771
lazy val `dotty-language-server` = project.in(file(" language-server" )).
769
772
dependsOn(dottyCompiler(Bootstrapped )).
@@ -828,8 +831,8 @@ object Build {
828
831
).disablePlugins(ScriptedPlugin )
829
832
830
833
lazy val `dotty-bench` = project.in(file(" bench" )).asDottyBench(NonBootstrapped )
831
- lazy val `dotty-bench-bootstrapped` = project.in(file(" bench" )).asDottyBench(Bootstrapped ).disablePlugins( ScriptedPlugin )
832
- lazy val `dotty-bench-optimised` = project.in(file(" bench" )).asDottyBench(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
834
+ lazy val `dotty-bench-bootstrapped` = project.in(file(" bench" )).asDottyBench(Bootstrapped )
835
+ lazy val `dotty-bench-optimised` = project.in(file(" bench" )).asDottyBench(BootstrappedOptimised )
833
836
834
837
// Depend on dotty-library so that sbt projects using dotty automatically
835
838
// depend on the dotty-library
@@ -1132,8 +1135,8 @@ object Build {
1132
1135
)
1133
1136
1134
1137
lazy val dist = project.asDist(NonBootstrapped )
1135
- lazy val `dist-bootstrapped` = project.asDist(Bootstrapped ).disablePlugins( ScriptedPlugin )
1136
- lazy val `dist-optimised` = project.asDist(BootstrappedOptimised ).disablePlugins( ScriptedPlugin )
1138
+ lazy val `dist-bootstrapped` = project.asDist(Bootstrapped )
1139
+ lazy val `dist-optimised` = project.asDist(BootstrappedOptimised )
1137
1140
1138
1141
// /** A sandbox to play with the Scala.js back-end of dotty.
1139
1142
// *
@@ -1181,6 +1184,7 @@ object Build {
1181
1184
1182
1185
// FIXME: we do not aggregate `bin` because its tests delete jars, thus breaking other tests
1183
1186
def asDottyRoot (implicit mode : Mode ): Project = project.withCommonSettings.
1187
+ disablePlugins(ScriptedPlugin ).
1184
1188
aggregate(`dotty-interfaces`, dottyLibrary, dottyCompiler, dottyDoc, dottySbtBridgeReference).
1185
1189
bootstrappedAggregate(`scala-library`, `scala-compiler`, `scala-reflect`, scalap, `dotty-language-server`).
1186
1190
dependsOn(dottyCompiler).
@@ -1190,31 +1194,37 @@ object Build {
1190
1194
)
1191
1195
1192
1196
def asDottyCompiler (implicit mode : Mode ): Project = project.withCommonSettings.
1197
+ disablePlugins(ScriptedPlugin ).
1193
1198
dependsOn(`dotty-interfaces`).
1194
1199
dependsOn(dottyLibrary).
1195
1200
settings(dottyCompilerSettings)
1196
1201
1197
1202
def asDottyLibrary (implicit mode : Mode ): Project = project.withCommonSettings.
1203
+ disablePlugins(ScriptedPlugin ).
1198
1204
settings(dottyLibrarySettings).
1199
1205
bootstrappedSettings(
1200
1206
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called.
1201
1207
scalacOptions in Compile ++= Seq (" -sourcepath" , (scalaSource in Compile ).value.getAbsolutePath)
1202
1208
)
1203
1209
1204
1210
def asDottyDoc (implicit mode : Mode ): Project = project.withCommonSettings.
1211
+ disablePlugins(ScriptedPlugin ).
1205
1212
dependsOn(dottyCompiler, dottyCompiler % " test->test" ).
1206
1213
settings(dottyDocSettings)
1207
1214
1208
1215
def asDottySbtBridge (implicit mode : Mode ): Project = project.withCommonSettings.
1216
+ disablePlugins(ScriptedPlugin ).
1209
1217
dependsOn(dottyCompiler % Provided ).
1210
1218
settings(dottySbtBridgeSettings)
1211
1219
1212
1220
def asDottyBench (implicit mode : Mode ): Project = project.withCommonSettings.
1221
+ disablePlugins(ScriptedPlugin ).
1213
1222
dependsOn(dottyCompiler).
1214
1223
settings(commonBenchmarkSettings).
1215
1224
enablePlugins(JmhPlugin )
1216
1225
1217
1226
def asDist (implicit mode : Mode ): Project = project.
1227
+ disablePlugins(ScriptedPlugin ).
1218
1228
enablePlugins(PackPlugin ).
1219
1229
withCommonSettings.
1220
1230
dependsOn(`dotty-interfaces`, dottyCompiler, dottyLibrary, dottyDoc).
0 commit comments