@@ -363,16 +363,17 @@ object Build {
363
363
lazy val dottySbtBridgeBootstrappedRef = LocalProject (" dotty-sbt-bridge-bootstrapped" )
364
364
365
365
def dottySbtBridgeReference (implicit mode : Mode ): LocalProject = mode match {
366
- case NonBootstrapped => dottySbtBridgeRef
367
- case _ => dottySbtBridgeBootstrappedRef
366
+ case FullyBootstrapped => dottySbtBridgeBootstrappedRef
367
+ case _ => dottySbtBridgeRef
368
368
}
369
369
370
370
// The root project:
371
371
// - aggregates other projects so that "compile", "test", etc are run on all projects at once.
372
372
// - publishes its own empty artifact "dotty" that depends on "dotty-library" and "dotty-compiler",
373
373
// this is only necessary for compatibility with sbt which currently hardcodes the "dotty" artifact name
374
- lazy val dotty = project.in(file(" ." )).asDottyRoot(NonBootstrapped )
375
- lazy val `dotty-bootstrapped` = project.asDottyRoot(Bootstrapped )
374
+ lazy val `dotty-non-bootstrapped-lib` = project.in(file(" ." )).asDottyRoot(WithNonBootstrappedLib )
375
+ lazy val dotty = project.in(file(" ." )).asDottyRoot(WithBootstrappedLib )
376
+ lazy val `dotty-bootstrapped` = project.asDottyRoot(FullyBootstrapped )
376
377
377
378
lazy val `dotty-interfaces` = project.in(file(" interfaces" )).
378
379
settings(commonScala2Settings). // Java-only project, so this is fine
@@ -462,12 +463,12 @@ object Build {
462
463
}
463
464
)
464
465
465
- lazy val `dotty-doc` = project.in(file(" doc-tool" )).asDottyDoc(NonBootstrapped )
466
- lazy val `dotty-doc-bootstrapped` = project.in(file(" doc-tool" )).asDottyDoc(Bootstrapped )
466
+ lazy val `dotty-doc` = project.in(file(" doc-tool" )).asDottyDoc(WithNonBootstrappedLib )
467
+ lazy val `dotty-doc-bootstrapped` = project.in(file(" doc-tool" )).asDottyDoc(FullyBootstrapped )
467
468
468
469
def dottyDoc (implicit mode : Mode ): Project = mode match {
469
- case NonBootstrapped => `dotty-doc`
470
- case Bootstrapped => `dotty-doc-bootstrapped `
470
+ case FullyBootstrapped => `dotty-doc-bootstrapped `
471
+ case _ => `dotty-doc`
471
472
}
472
473
473
474
def testOnlyFiltered (test : String , options : String ) = Def .inputTaskDyn {
@@ -765,14 +766,14 @@ object Build {
765
766
)
766
767
767
768
def dottyCompilerSettings (implicit mode : Mode ): sbt.Def .SettingsDefinition =
768
- if (mode == NonBootstrapped ) nonBootstrapedDottyCompilerSettings else bootstrapedDottyCompilerSettings
769
+ if (mode == WithNonBootstrappedLib ) nonBootstrapedDottyCompilerSettings else bootstrapedDottyCompilerSettings
769
770
770
- lazy val `dotty-compiler` = project.in(file(" compiler" )).asDottyCompiler(NonBootstrapped )
771
- lazy val `dotty-compiler-bootstrapped` = project.in(file(" compiler" )).asDottyCompiler(Bootstrapped )
771
+ lazy val `dotty-compiler` = project.in(file(" compiler" )).asDottyCompiler(WithNonBootstrappedLib )
772
+ lazy val `dotty-compiler-bootstrapped` = project.in(file(" compiler" )).asDottyCompiler(FullyBootstrapped )
772
773
773
774
def dottyCompiler (implicit mode : Mode ): Project = mode match {
774
- case NonBootstrapped => `dotty-compiler`
775
- case Bootstrapped => `dotty-compiler-bootstrapped `
775
+ case FullyBootstrapped => `dotty-compiler-bootstrapped `
776
+ case _ => `dotty-compiler`
776
777
}
777
778
778
779
// Settings shared between dotty-library and dotty-library-bootstrapped
@@ -790,12 +791,12 @@ object Build {
790
791
}
791
792
)
792
793
793
- lazy val `dotty-library` = project.in(file(" library" )).asDottyLibrary(NonBootstrapped )
794
- lazy val `dotty-library-bootstrapped` : Project = project.in(file(" library" )).asDottyLibrary(Bootstrapped )
794
+ lazy val `dotty-library` = project.in(file(" library" )).asDottyLibrary(WithNonBootstrappedLib )
795
+ lazy val `dotty-library-bootstrapped` : Project = project.in(file(" library" )).asDottyLibrary(WithBootstrappedLib )
795
796
796
797
def dottyLibrary (implicit mode : Mode ): Project = mode match {
797
- case NonBootstrapped => `dotty-library`
798
- case Bootstrapped => `dotty-library-bootstrapped`
798
+ case WithNonBootstrappedLib => `dotty-library`
799
+ case _ => `dotty-library-bootstrapped`
799
800
}
800
801
801
802
// until sbt/sbt#2402 is fixed (https://github.com/sbt/sbt/issues/2402)
@@ -841,8 +842,8 @@ object Build {
841
842
parallelExecution in Test := false
842
843
)
843
844
844
- lazy val `dotty-sbt-bridge` = project.in(file(" sbt-bridge" )).asDottySbtBridge(NonBootstrapped )
845
- lazy val `dotty-sbt-bridge-bootstrapped` = project.in(file(" sbt-bridge" )).asDottySbtBridge(Bootstrapped )
845
+ lazy val `dotty-sbt-bridge` = project.in(file(" sbt-bridge" )).asDottySbtBridge(WithNonBootstrappedLib )
846
+ lazy val `dotty-sbt-bridge-bootstrapped` = project.in(file(" sbt-bridge" )).asDottySbtBridge(FullyBootstrapped )
846
847
.settings(
847
848
// Tweak -Yscala2-unpickler to allow some sbt dependencies used in tests
848
849
/*
@@ -862,7 +863,7 @@ object Build {
862
863
)
863
864
864
865
lazy val `dotty-language-server` = project.in(file(" language-server" )).
865
- dependsOn(dottyCompiler(Bootstrapped )).
866
+ dependsOn(dottyCompiler(FullyBootstrapped )).
866
867
settings(commonBootstrappedSettings).
867
868
settings(
868
869
// Sources representing the shared configuration file used to communicate between the sbt-dotty
@@ -955,10 +956,10 @@ object Build {
955
956
).
956
957
settings(compileWithDottySettings)
957
958
958
- lazy val `dotty-bench` = project.in(file(" bench" )).asDottyBench(NonBootstrapped )
959
- lazy val `dotty-bench-bootstrapped` = project.in(file(" bench" )).asDottyBench(Bootstrapped )
959
+ lazy val `dotty-bench` = project.in(file(" bench" )).asDottyBench(WithNonBootstrappedLib )
960
+ lazy val `dotty-bench-bootstrapped` = project.in(file(" bench" )).asDottyBench(FullyBootstrapped )
960
961
961
- lazy val `dotty-semanticdb` = project.in(file(" semanticdb" )).asDottySemanticdb(Bootstrapped )
962
+ lazy val `dotty-semanticdb` = project.in(file(" semanticdb" )).asDottySemanticdb(FullyBootstrapped )
962
963
lazy val `dotty-semanticdb-input` = project.in(file(" semanticdb/input" )).settings(
963
964
scalaVersion := " 2.12.7" ,
964
965
scalacOptions += " -Yrangepos" ,
@@ -1272,11 +1273,11 @@ object Build {
1272
1273
packArchiveName := " dotty-" + dottyVersion
1273
1274
)
1274
1275
1275
- lazy val dist = project.asDist(NonBootstrapped )
1276
+ lazy val dist = project.asDist(WithNonBootstrappedLib )
1276
1277
.settings(
1277
1278
packResourceDir += (baseDirectory.value / " bin" -> " bin" ),
1278
1279
)
1279
- lazy val `dist-bootstrapped` = project.asDist(Bootstrapped )
1280
+ lazy val `dist-bootstrapped` = project.asDist(FullyBootstrapped )
1280
1281
.settings(
1281
1282
packResourceDir += ((baseDirectory in dist).value / " bin" -> " bin" ),
1282
1283
)
@@ -1334,8 +1335,8 @@ object Build {
1334
1335
)
1335
1336
1336
1337
def withCommonSettings (implicit mode : Mode ): Project = project.settings(mode match {
1337
- case NonBootstrapped => commonNonBootstrappedSettings
1338
- case Bootstrapped => commonBootstrappedSettings
1338
+ case FullyBootstrapped => commonBootstrappedSettings
1339
+ case _ => commonNonBootstrappedSettings
1339
1340
})
1340
1341
}
1341
1342
}
0 commit comments