1- import DependencyKeys .scalaXmlVersion
1+ import VersionKeys ._
2+
23
34organization := " org.scala-lang.modules"
45
56name := " scala-partest"
67
78version := " 1.0.0-SNAPSHOT"
89
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+
1014scalaXmlVersion := " 1.0.0-RC6"
1115
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+
1222// so we don't have to wait for sonatype to synch to maven central when deploying a new module
1323resolvers += Resolver .sonatypeRepo(" releases" )
1424
@@ -22,11 +32,8 @@ libraryDependencies += "com.googlecode.java-diff-utils" % "diffutils" % "1.
2232
2333libraryDependencies += " org.scala-sbt" % " test-interface" % " 1.0"
2434
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"
3037
3138// mark all scala dependencies as provided which means one has to explicitly provide them when depending on partest
3239// 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
3946
4047libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value % " provided" intransitive()
4148
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-
5049// 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" )
5252
5353
5454// Generate $name.properties to store our version as well as the scala version used to build
0 commit comments