Skip to content

Change versioning to SNAPSHOT and nightly releases for now #1332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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")),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down