-
Notifications
You must be signed in to change notification settings - Fork 935
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 #2613 from jroper/sbt-doge
Replaced cross building support with sbt-doge
- Loading branch information
Showing
10 changed files
with
354 additions
and
107 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,10 @@ | ||
[@jroper]: https://github.com/jroper | ||
[2613]: https://github.com/sbt/sbt/pull/2613 | ||
|
||
### Fixes with compatibility implications | ||
|
||
### Improvements | ||
|
||
- Replace cross building support with sbt-doge. This allows builds with projects that have multiple different combinations of cross scala versions to be cross built correctly. The behaviour of ++ is changed so that it only updates the Scala version of projects that support that Scala version, but the Scala version can be post fixed with ! to force it to change for all projects. A -v argument has been added that prints verbose information about which projects are having their settings changed along with their cross scala versions. [#2613][2613] by [@jroper][@jroper]. | ||
|
||
### Bug fixes |
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,18 @@ | ||
|
||
lazy val rootProj = (project in file(".")). | ||
aggregate(libProj, fooPlugin) | ||
|
||
lazy val libProj = (project in file("lib")). | ||
settings( | ||
name := "foo-lib", | ||
scalaVersion := "2.11.8", | ||
crossScalaVersions := Seq("2.11.8", "2.10.4") | ||
) | ||
|
||
lazy val fooPlugin =(project in file("sbt-foo")). | ||
settings( | ||
name := "sbt-foo", | ||
sbtPlugin := true, | ||
scalaVersion := "2.10.4", | ||
crossScalaVersions := Seq("2.10.4") | ||
) |
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 { | ||
|
||
} |
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.sbt | ||
|
||
object SbtFoo { | ||
|
||
} |
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,46 @@ | ||
> + compile | ||
|
||
$ exists lib/target/scala-2.11 | ||
$ exists lib/target/scala-2.10 | ||
$ exists sbt-foo/target/scala-2.10 | ||
-$ exists sbt-foo/target/scala-2.11 | ||
|
||
> clean | ||
> + libProj/compile | ||
|
||
$ exists lib/target/scala-2.11 | ||
$ exists lib/target/scala-2.10 | ||
-$ exists sbt-foo/target/scala-2.10 | ||
-$ exists sbt-foo/target/scala-2.11 | ||
|
||
> clean | ||
> ++ 2.11.1 compile | ||
|
||
$ exists lib/target/scala-2.11 | ||
-$ exists lib/target/scala-2.10 | ||
$ exists sbt-foo/target/scala-2.10 | ||
-$ exists sbt-foo/target/scala-2.11 | ||
|
||
> clean | ||
> ++ 2.10.4 compile | ||
|
||
-$ exists lib/target/scala-2.11 | ||
$ exists lib/target/scala-2.10 | ||
$ exists sbt-foo/target/scala-2.10 | ||
-$ exists sbt-foo/target/scala-2.11 | ||
|
||
> clean | ||
> ++ 2.11.5 compile | ||
|
||
$ exists lib/target/scala-2.11 | ||
-$ exists lib/target/scala-2.10 | ||
$ exists sbt-foo/target/scala-2.10 | ||
-$ exists sbt-foo/target/scala-2.11 | ||
|
||
> clean | ||
> ++ 2.11.5! compile | ||
|
||
$ exists lib/target/scala-2.11 | ||
-$ exists lib/target/scala-2.10 | ||
-$ exists sbt-foo/target/scala-2.10 | ||
$ exists sbt-foo/target/scala-2.11 |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# A.scala needs B.scala, it won't be in source list | ||
> ++2.11.4 | ||
> ++2.11.4! | ||
-> compile | ||
|
||
# A.scala needs B.scala, it would be in source list | ||
> ++2.10.4 | ||
> ++2.10.4! | ||
> compile |