|
| 1 | +import VersionKeys.{snapshotScalaBinaryVersion,deriveBinaryVersion} |
| 2 | + |
1 | 3 | organization := "org.scala-lang.modules"
|
2 | 4 |
|
3 | 5 | name := "scala-xml"
|
4 | 6 |
|
5 | 7 | version := "1.0.0-SNAPSHOT"
|
6 | 8 |
|
7 |
| -// standard stuff follows: |
8 |
| -scalaVersion := "2.11.0-M6" |
| 9 | +scalaVersion := "2.11.0-M7" |
| 10 | + |
| 11 | +snapshotScalaBinaryVersion := "2.11.0-M7" |
9 | 12 |
|
10 |
| -// NOTE: not necessarily equal to scalaVersion |
11 |
| -// (e.g., during PR validation, we override scalaVersion to validate, |
12 |
| -// but don't rebuild scalacheck, so we don't want to rewire that dependency) |
13 |
| -scalaBinaryVersion := "2.11.0-M6" |
| 13 | +// DOUBLETHINK YOUR WAY OUT OF EDITING BELOW (THERE IS NO BELOW) |
| 14 | + |
| 15 | +scalaBinaryVersion := deriveBinaryVersion(scalaVersion.value, snapshotScalaBinaryVersion.value) |
14 | 16 |
|
15 | 17 | // to allow compiling against snapshot versions of Scala
|
16 | 18 | resolvers += Resolver.sonatypeRepo("snapshots")
|
17 | 19 |
|
18 |
| -// don't use for doc scope, scaladoc warnings are not to be reckoned with |
19 |
| -scalacOptions in compile ++= Seq("-optimize", "-Xfatal-warnings", "-feature", "-deprecation", "-unchecked", "-Xlint") |
20 | 20 |
|
21 | 21 | libraryDependencies ++= Seq(
|
22 | 22 | "org.scala-lang" % "scala-compiler" % scalaVersion.value % "test", // used in CompilerErrors test
|
23 | 23 | "junit" % "junit" % "4.11" % "test",
|
24 | 24 | "com.novocode" % "junit-interface" % "0.10" % "test")
|
25 | 25 |
|
| 26 | + |
| 27 | +// don't use for doc scope, scaladoc warnings are not to be reckoned with |
| 28 | +// TODO: turn on for nightlies, but don't enable for PR validation... "-Xfatal-warnings" |
| 29 | +scalacOptions in compile ++= Seq("-optimize", "-feature", "-deprecation", "-unchecked", "-Xlint") |
| 30 | + |
26 | 31 | // Generate $name.properties to store our version as well as the scala version used to build
|
27 | 32 | resourceGenerators in Compile <+= Def.task {
|
28 | 33 | val props = new java.util.Properties
|
|
0 commit comments