1
- import DependencyKeys .scalaXmlVersion
1
+ import VersionKeys ._
2
+
2
3
3
4
organization := " org.scala-lang.modules"
4
5
5
6
name := " scala-partest"
6
7
7
8
version := " 1.0.0-SNAPSHOT"
8
9
9
- // TODO: bump to 1.0.0-RC5 as soon as it's out
10
+ scalaVersion := " 2.11.0-M6"
11
+
12
+ snapshotScalaBinaryVersion := " 2.11.0-M6"
13
+
10
14
scalaXmlVersion := " 1.0.0-RC6"
11
15
16
+ scalaCheckVersion := " 1.10.1"
17
+
18
+ // DOUBLETHINK YOUR WAY OUT OF EDITING BELOW (THERE IS NO BELOW)
19
+
20
+ scalaBinaryVersion := deriveBinaryVersion(scalaVersion.value, snapshotScalaBinaryVersion.value)
21
+
12
22
// so we don't have to wait for sonatype to synch to maven central when deploying a new module
13
23
resolvers += Resolver .sonatypeRepo(" releases" )
14
24
@@ -22,11 +32,8 @@ libraryDependencies += "com.googlecode.java-diff-utils" % "diffutils" % "1.
22
32
23
33
libraryDependencies += " org.scala-sbt" % " test-interface" % " 1.0"
24
34
25
- // mark as intransitive because 1.10.1 released against Scala 2.11.0-M6 has wrong dependencies
26
- // once we upgrade to M7 the intransitive bit can be dropped
27
- // however, provided should stay; if one wants to run scalacheck tests it should depend on
28
- // scalacheck explicitly
29
- libraryDependencies += " org.scalacheck" %% " scalacheck" % " 1.10.1" % " provided" intransitive()
35
+ // to run scalacheck tests, depend on scalacheck separately
36
+ libraryDependencies += " org.scalacheck" %% " scalacheck" % scalaCheckVersion.value % " provided"
30
37
31
38
// mark all scala dependencies as provided which means one has to explicitly provide them when depending on partest
32
39
// this allows for easy testing of modules (like scala-xml) that provide tested classes themselves and shouldn't
@@ -39,16 +46,9 @@ libraryDependencies += "org.scala-lang" % "scala-reflect" % sca
39
46
40
47
libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value % " provided" intransitive()
41
48
42
- // standard stuff follows:
43
- scalaVersion := " 2.11.0-M6"
44
-
45
- // NOTE: not necessarily equal to scalaVersion
46
- // (e.g., during PR validation, we override scalaVersion to validate,
47
- // but don't rebuild scalacheck, so we don't want to rewire that dependency)
48
- scalaBinaryVersion := " 2.11.0-M6"
49
-
50
49
// don't use for doc scope, scaladoc warnings are not to be reckoned with
51
- scalacOptions in (Compile , compile) ++= Seq (" -optimize" , " -Xfatal-warnings" , " -feature" , " -deprecation" , " -unchecked" , " -Xlint" )
50
+ // "-Xfatal-warnings",
51
+ scalacOptions in (Compile , compile) ++= Seq (" -optimize" , " -feature" , " -deprecation" , " -unchecked" , " -Xlint" )
52
52
53
53
54
54
// Generate $name.properties to store our version as well as the scala version used to build
0 commit comments