Skip to content

Commit ac216c7

Browse files
authored
Merge pull request #8670 from dotty-staging/sbt-clean-pub
Sensible defaults for sbt `clean` and `publishLocal`
2 parents b0e7e26 + fe29b58 commit ac216c7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

project/Build.scala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,15 @@ object Build {
13391339
dependsOn(dottyCompiler).
13401340
dependsOn(dottyLibrary).
13411341
nonBootstrappedSettings(
1342-
addCommandAlias("run", "dotty-compiler/run")
1342+
addCommandAlias("run", "dotty-compiler/run"),
1343+
// Clean everything by default
1344+
addCommandAlias("clean", ";dotty/clean;dotty-bootstrapped/clean"),
1345+
// `publishLocal` on the non-bootstrapped compiler does not produce a
1346+
// working distribution (it can't in general, since there's no guarantee
1347+
// that the non-bootstrapped library is compatible with the
1348+
// non-bootstrapped compiler), so publish the bootstrapped one by
1349+
// default.
1350+
addCommandAlias("publishLocal", "dotty-bootstrapped/publishLocal"),
13431351
)
13441352

13451353
def asDottyCompiler(implicit mode: Mode): Project = project.withCommonSettings.

0 commit comments

Comments
 (0)