aboutsummaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-04-07 01:50:26 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-04-07 02:01:03 -0400
commitd915335f32f89a18cec097159f39334fe2bcde0d (patch)
tree57934fe60308864fd247c24d74ab7bf55e638cc8 /stage1
parent0ef27a7d8cabd0dfe4009b09481566d3d02a76c6 (diff)
downloadcbt-d915335f32f89a18cec097159f39334fe2bcde0d.tar.gz
cbt-d915335f32f89a18cec097159f39334fe2bcde0d.tar.bz2
cbt-d915335f32f89a18cec097159f39334fe2bcde0d.zip
cross building and automatic snaphot ids
Adds support for cross building for multiple scala versions And for automatically appending -SNAPSHOT to the id, when publishing a snapshot.
Diffstat (limited to 'stage1')
-rw-r--r--stage1/Stage1Lib.scala11
1 files changed, 10 insertions, 1 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala
index 7a2f8db..985200e 100644
--- a/stage1/Stage1Lib.scala
+++ b/stage1/Stage1Lib.scala
@@ -31,7 +31,16 @@ object CatchTrappedExitCode{
}
}
-case class Context( projectDirectory: File, cwd: File, args: Seq[String], logger: Logger, cbtHasChanged: Boolean, classLoaderCache: ClassLoaderCache )
+case class Context(
+ projectDirectory: File,
+ cwd: File,
+ args: Seq[String],
+ logger: Logger,
+ cbtHasChanged: Boolean,
+ classLoaderCache: ClassLoaderCache,
+ version: Option[String] = None,
+ scalaVersion: Option[String] = None
+)
class BaseLib{
def realpath(name: File) = new File(Paths.get(name.getAbsolutePath).normalize.toString)