diff options
author | Dale Wijnand <dale.wijnand@gmail.com> | 2016-09-08 14:48:13 +0100 |
---|---|---|
committer | Dale Wijnand <dale.wijnand@gmail.com> | 2016-11-10 18:52:33 +0000 |
commit | 3894f2ceb5678ea20dd27fab9bddff2cadc7d9af (patch) | |
tree | 57c6169f0d89403d03e8659c0b33c59b72875518 /build.sbt | |
parent | 4c63c9f2689f278b716f41b8699b3c918766fe80 (diff) | |
download | scala-3894f2ceb5678ea20dd27fab9bddff2cadc7d9af.tar.gz scala-3894f2ceb5678ea20dd27fab9bddff2cadc7d9af.tar.bz2 scala-3894f2ceb5678ea20dd27fab9bddff2cadc7d9af.zip |
Define the root sbt project's scalaVersion
The root project is commonly used as the reference point for values, such
as "the scala version" of the (entire) project.
For example ENSIME uses it like that.
Also disablePublishing already disables publish and publishLocal.
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -91,6 +91,8 @@ baseVersion in Global := "2.12.1" baseVersionSuffix in Global := "SNAPSHOT" mimaReferenceVersion in Global := Some("2.12.0-RC1") +scalaVersion in Global := versionProps("starr.version") + lazy val commonSettings = clearSourceAndResourceDirectories ++ publishSettings ++ Seq[Setting[_]]( organization := "org.scala-lang", // we don't cross build Scala itself @@ -113,7 +115,6 @@ lazy val commonSettings = clearSourceAndResourceDirectories ++ publishSettings + s2 } }, - scalaVersion := (scalaVersion in bootstrap).value, // As of sbt 0.13.12 (sbt/sbt#2634) sbt endeavours to align both scalaOrganization and scalaVersion // in the Scala artefacts, for example scala-library and scala-compiler. // This doesn't work in the scala/scala build because the version of scala-library and the scalaVersion of @@ -317,9 +318,7 @@ def regexFileFilter(s: String): FileFilter = new FileFilter { } // This project provides the STARR scalaInstance for bootstrapping -lazy val bootstrap = (project in file("target/bootstrap")).settings( - scalaVersion := versionProps("starr.version") -) +lazy val bootstrap = project in file("target/bootstrap") lazy val library = configureAsSubproject(project) .settings(generatePropertiesFileSettings) @@ -760,8 +759,6 @@ lazy val root: Project = (project in file(".")) .settings(disablePublishing) .settings(generateBuildCharacterFileSettings) .settings( - publish := {}, - publishLocal := {}, commands ++= ScriptCommands.all, extractBuildCharacterPropertiesFile := { val jar = (scalaInstance in bootstrap).value.allJars.find(_.getName contains "-compiler").get |