diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-06-25 13:08:14 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-06-25 15:20:00 +0200 |
commit | a78970ce14afce85728d86cb056e65d0c8cd8db3 (patch) | |
tree | 3b0937388e77b15bcf772dd58d1fe9edbc7ca59c /project/Build.scala | |
parent | cc87bd3b452e76ae974504c4f4e6beba996be3e8 (diff) | |
download | dotty-a78970ce14afce85728d86cb056e65d0c8cd8db3.tar.gz dotty-a78970ce14afce85728d86cb056e65d0c8cd8db3.tar.bz2 dotty-a78970ce14afce85728d86cb056e65d0c8cd8db3.zip |
Change versioning to SNAPSHOT and nightly releases for now
Diffstat (limited to 'project/Build.scala')
-rw-r--r-- | project/Build.scala | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/project/Build.scala b/project/Build.scala index ecb0668bd..b53cf1081 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -9,6 +9,9 @@ import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ object DottyBuild extends Build { + val baseVersion = "0.1" + val isNightly = sys.props.get("NIGHTLYBUILD") == Some("yes") + val jenkinsMemLimit = List("-Xmx1300m") val JENKINS_BUILD = "dotty.jenkins.build" @@ -25,8 +28,12 @@ object DottyBuild extends Build { override def settings: Seq[Setting[_]] = { super.settings ++ Seq( scalaVersion in Global := "2.11.5", - version in Global := - "0.1-" + VersionUtil.commitDate + "-" + VersionUtil.gitHash + "-SNAPSHOT", + version in Global := { + if (isNightly) + baseVersion + "-" + VersionUtil.commitDate + "-" + VersionUtil.gitHash + "-NIGHTLY" + else + baseVersion + "-SNAPSHOT" + }, organization in Global := "ch.epfl.lamp", organizationName in Global := "LAMP/EPFL", organizationHomepage in Global := Some(url("http://lamp.epfl.ch")), @@ -208,8 +215,12 @@ object DottyBuild extends Build { "org.scala-sbt" % "api" % sbtVersion.value % "test", "org.specs2" %% "specs2" % "2.3.11" % "test" ), - version := - "0.1.1-" + VersionUtil.commitDate + "-" + VersionUtil.gitHash + "-SNAPSHOT", + version := { + if (isNightly) + "0.1.1-" + VersionUtil.commitDate + "-" + VersionUtil.gitHash + "-NIGHTLY" + else + "0.1.1-SNAPSHOT" + }, // The sources should be published with crossPaths := false since they // need to be compiled by the project using the bridge. crossPaths := false, @@ -334,6 +345,12 @@ object DottyInjectedPlugin extends AutoPlugin { } ) + lazy val `scala-library` = project + .settings( + libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value + ) + .settings(publishing) + lazy val publishing = Seq( publishMavenStyle := true, publishArtifact := true, |