-
Notifications
You must be signed in to change notification settings - Fork 446
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 #20 from sbt/wip/fix-19
Fixes issue where classpath of inter-project-dependencies didn't make a distirbution
- Loading branch information
Showing
6 changed files
with
158 additions
and
19 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
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
49 changes: 49 additions & 0 deletions
49
src/sbt-test/universal/mutliproject-java-app-archetype/project/Build.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,49 @@ | ||
import sbt._ | ||
import Keys._ | ||
import com.typesafe.sbt.SbtNativePackager._ | ||
|
||
object MutliBuild extends Build { | ||
|
||
val appName = "play-bug-1499" | ||
val appVersion = "1.0" | ||
|
||
val mySettings: Seq[Setting[_]] = | ||
packageArchetype.java_application ++ | ||
Seq( | ||
organization := "org.test", | ||
version := appVersion, | ||
TaskKey[Unit]("show-files") <<= (name, target, streams) map { (n, t, s) => | ||
System.out.synchronized { | ||
println("Files in ["+n+"]") | ||
val files = (t / "universal/stage").***.get | ||
files foreach println | ||
} | ||
} | ||
) | ||
|
||
|
||
lazy val common = ( | ||
Project(appName + "-common", file("module/common")) | ||
settings(mySettings:_*) | ||
) | ||
|
||
lazy val foo = ( | ||
Project(appName + "-foo", file("module/foo")) | ||
settings(mySettings:_*) | ||
dependsOn(common) | ||
) | ||
|
||
lazy val bar = ( | ||
Project(appName + "-bar", file("module/bar")) | ||
settings(mySettings:_*) | ||
dependsOn(common) | ||
) | ||
|
||
lazy val aaMain = ( | ||
Project(appName + "-main", file(".")) | ||
settings(mySettings:_*) | ||
dependsOn(common,foo,bar) | ||
aggregate(foo,bar) | ||
) | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
src/sbt-test/universal/mutliproject-java-app-archetype/project/plugins.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 @@ | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % sys.props("project.version")) |
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,7 @@ | ||
# Run the staging and check the script. | ||
> stage | ||
> show-files | ||
$ exists target/universal/stage/lib/org.test.play-bug-1499-foo-1.0.jar | ||
$ exists target/universal/stage/lib/org.test.play-bug-1499-common-1.0.jar | ||
$ exists target/universal/stage/lib/org.test.play-bug-1499-bar-1.0.jar | ||
$ exists target/universal/stage/lib/org.test.play-bug-1499-main-1.0.jar |