|
| 1 | +import VersionKeys.{snapshotScalaBinaryVersion,deriveBinaryVersion} |
| 2 | + |
1 | 3 | organization := "org.scala-lang.modules" |
2 | 4 |
|
3 | 5 | name := "scala-parser-combinators" |
4 | 6 |
|
5 | 7 | version := "1.0.0-SNAPSHOT" |
6 | 8 |
|
7 | | -scalaVersion := "2.11.0-M6" |
| 9 | +scalaVersion := "2.11.0-M7" |
| 10 | + |
| 11 | +snapshotScalaBinaryVersion := "2.11.0-M7" |
| 12 | + |
| 13 | +// DOUBLETHINK YOUR WAY OUT OF EDITING BELOW (THERE IS NO BELOW) |
8 | 14 |
|
9 | | -// NOTE: not necessarily equal to scalaVersion |
10 | | -// (e.g., during PR validation, we override scalaVersion to validate, |
11 | | -// but don't rebuild scalacheck, so we don't want to rewire that dependency) |
12 | | -scalaBinaryVersion := "2.11.0-M6" |
| 15 | +scalaBinaryVersion := deriveBinaryVersion(scalaVersion.value, snapshotScalaBinaryVersion.value) |
13 | 16 |
|
14 | 17 | // to allow compiling against snapshot versions of Scala |
15 | 18 | resolvers += Resolver.sonatypeRepo("snapshots") |
16 | 19 |
|
| 20 | + |
| 21 | +libraryDependencies ++= Seq( |
| 22 | + "junit" % "junit" % "4.11" % "test", |
| 23 | + "com.novocode" % "junit-interface" % "0.10" % "test") |
| 24 | + |
17 | 25 | // don't use for doc scope, scaladoc warnings are not to be reckoned with |
18 | | -scalacOptions in compile ++= Seq("-optimize", "-Xfatal-warnings", "-feature", "-deprecation", "-unchecked", "-Xlint") |
| 26 | +// TODO: turn on for nightlies, but don't enable for PR validation... "-Xfatal-warnings" |
| 27 | +scalacOptions in compile ++= Seq("-optimize", "-feature", "-deprecation", "-unchecked", "-Xlint") |
19 | 28 |
|
20 | 29 |
|
21 | 30 | // Generate $name.properties to store our version as well as the scala version used to build |
@@ -81,8 +90,6 @@ pomExtra := ( |
81 | 90 | </developers> |
82 | 91 | ) |
83 | 92 |
|
84 | | -libraryDependencies ++= Seq("junit" % "junit" % "4.11" % "test", "com.novocode" % "junit-interface" % "0.10" % "test") |
85 | | - |
86 | 93 | osgiSettings |
87 | 94 |
|
88 | 95 | val osgiVersion = version(_.replace('-', '.')) |
|
0 commit comments