Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3995 from ruippeixotog/cross-strict-aggregation
Filter incompatible aggregates in cross switch commands
- Loading branch information
Showing
6 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[@ruippeixotog]: https://github.com/ruippeixotog | ||
|
||
[#3698]: https://github.com/sbt/sbt/issues/3698 | ||
[#3995]: https://github.com/sbt/sbt/pull/3995 | ||
|
||
### Improvements | ||
|
||
- Make `++ <scala-version> <command>` run `<command>` only on compatible subprojects. [#3698][]/[#3995][] by [@ruippeixotog][] |
13 changes: 13 additions & 0 deletions
13
sbt/src/sbt-test/actions/cross-strict-aggregation/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
lazy val root = (project in file(".")) | ||
.aggregate(core, module) | ||
|
||
lazy val core = (project in file("core")) | ||
.settings( | ||
scalaVersion := "2.12.4", | ||
crossScalaVersions := Seq("2.11.11", "2.12.4")) | ||
|
||
lazy val module = (project in file("module")) | ||
.dependsOn(core) | ||
.settings( | ||
scalaVersion := "2.12.4", | ||
crossScalaVersions := Seq("2.12.4")) |
5 changes: 5 additions & 0 deletions
5
sbt/src/sbt-test/actions/cross-strict-aggregation/core/A.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package foo | ||
|
||
object Foo { | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
sbt/src/sbt-test/actions/cross-strict-aggregation/module/B.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package foo.module | ||
|
||
object FooModule { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
> ++2.11.11 compile | ||
|
||
$ exists core/target/scala-2.11 | ||
-$ exists module/target/scala-2.11 | ||
-$ exists module/target/scala-2.12 |