Created
June 16, 2011 13:31
-
-
Save philcali/1029230 to your computer and use it in GitHub Desktop.
Nicol project definition
This file contains hidden or 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
// sbt 0.10 parent project definition | |
import sbt._ | |
imoprt Keys._ | |
object General { | |
val settings = Defaults.defaultSettings ++ Nicol.engineSettings ++ Seq ( | |
organization := "com.github.scan", | |
version := "0.1.0.1", | |
publishTo := Some("name" at "url"), | |
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials") | |
) | |
} | |
// Assuming the main src is moved into core | |
object NicolEngine extends Build { | |
lazy val nicol = Project ( | |
"nicol", file("."), settings = General.settings | |
) aggregate (nicolCore, nicolParticles, nicolSceneGraph) | |
lazy val nicolCore = Project ( | |
"nicol-core", file("core"), settings = General.settings | |
) | |
lazy val nicolParticles = Project ( | |
"nicol-particles", file("particles"), settings = General.settings | |
) dependsOn nicolCore | |
lazy val nicolSceneGraph = Project ( | |
"nicol-scene-graph", file("scene-graph"), | |
settings = General.settings | |
) dependsOn nicolCore | |
} | |
// If you move the src for the test in src/test/scala/nicol, you should be able to compile all | |
// projects and run the test code from the parent project in the sbt shell. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment