From d915335f32f89a18cec097159f39334fe2bcde0d Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Thu, 7 Apr 2016 01:50:26 -0400 Subject: 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. --- stage1/Stage1Lib.scala | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'stage1') 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) -- cgit v1.2.3