summaryrefslogtreecommitdiff
path: root/project/Layers.scala
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2012-04-03 11:36:07 -0400
committerJosh Suereth <joshua.suereth@gmail.com>2012-04-03 11:36:07 -0400
commit4467438a58a3ce0342c1ab608b02b0f880c61aaf (patch)
tree24fbaa747309b4ea7eba029b9ccfafc62cd986ad /project/Layers.scala
parent9894b2c9bcfe9cec0a6853b69148e0c8b5a2508d (diff)
downloadscala-4467438a58a3ce0342c1ab608b02b0f880c61aaf.tar.gz
scala-4467438a58a3ce0342c1ab608b02b0f880c61aaf.tar.bz2
scala-4467438a58a3ce0342c1ab608b02b0f880c61aaf.zip
Fixed up versioning scheme.
SBT build should now mimic ant build for versions.
Diffstat (limited to 'project/Layers.scala')
-rw-r--r--project/Layers.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/project/Layers.scala b/project/Layers.scala
index d39e58014c..b15b327895 100644
--- a/project/Layers.scala
+++ b/project/Layers.scala
@@ -16,6 +16,8 @@ trait Layers extends Build {
def fjbg: Project
/** A setting that adds some external dependencies. */
def externalDeps: Setting[_]
+ /** The root project. */
+ def aaa_root: Project
/** Creates a reference Scala version that can be used to build other projects. This takes in the raw
* library, compiler and fjbg libraries as well as a string representing the layer name (used for compiling the compile-interface).
@@ -57,7 +59,7 @@ trait Layers extends Build {
// TODO - Allow other scalac option settings.
scalacOptions in Compile <++= (scalaSource in Compile) map (src => Seq("-sourcepath", src.getAbsolutePath)),
classpathOptions := ClasspathOptions.manual,
- resourceGenerators in Compile <+= (baseDirectory, version, resourceManaged, gitRunner, streams) map Release.generatePropertiesFile("library.properties"),
+ resourceGenerators in Compile <+= (resourceManaged, Versions.scalaVersions, streams) map Versions.generateVersionPropertiesFile("library.properties"),
referenceScala
)
@@ -70,7 +72,7 @@ trait Layers extends Build {
defaultExcludes := ("tests"),
javacOptions ++= Seq("-source", "1.4"),
defaultExcludes in unmanagedResources := "*.scala",
- resourceGenerators in Compile <+= (baseDirectory, version, resourceManaged, gitRunner, streams) map Release.generatePropertiesFile("compiler.properties"),
+ resourceGenerators in Compile <+= (resourceManaged, Versions.scalaVersions, streams) map Versions.generateVersionPropertiesFile("compiler.properties"),
// Note, we might be able to use the default task, but for some reason ant was filtering files out. Not sure what's up, but we'll
// stick with that for now.
unmanagedResources in Compile <<= (baseDirectory) map {