Skip to content

Sensible defaults for sbt clean and publishLocal #8670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,15 @@ object Build {
dependsOn(dottyCompiler).
dependsOn(dottyLibrary).
nonBootstrappedSettings(
addCommandAlias("run", "dotty-compiler/run")
addCommandAlias("run", "dotty-compiler/run"),
// Clean everything by default
addCommandAlias("clean", ";dotty/clean;dotty-bootstrapped/clean"),
// `publishLocal` on the non-bootstrapped compiler does not produce a
// working distribution (it can't in general, since there's no guarantee
// that the non-bootstrapped library is compatible with the
// non-bootstrapped compiler), so publish the bootstrapped one by
// default.
addCommandAlias("publishLocal", "dotty-bootstrapped/publishLocal"),
)

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