Skip to content

Commit 232a0bb

Browse files
committed
Build maintainence
- Update to SBT 0.12.4 - Update to Scala 2.10.2 - Provide a means to disable test compilation (other then TreeInterrogation) This is handy when doing major renovations to the macro implementation. - Explicitly depend on scala-compiler (we'll need that in the next commit) - Declare the dependencies on scala-{reflect, compiler} as "provided" to avoid adding them the runtime classpath of upstream projects. They are only needed at compile time.
1 parent 9156cbe commit 232a0bb

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ target
33
.idea
44
.idea_modules
55
*.icode
6+
project/local.sbt

build.sbt

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
scalaVersion := "2.10.1"
1+
scalaVersion := "2.10.2"
22

33
organization := "org.typesafe.async" // TODO new org name under scala-lang.
44

@@ -8,8 +8,8 @@ version := "1.0.0-SNAPSHOT"
88

99
libraryDependencies <++= (scalaVersion) {
1010
sv => Seq(
11-
"org.scala-lang" % "scala-reflect" % sv,
12-
"org.scala-lang" % "scala-compiler" % sv % "test"
11+
"org.scala-lang" % "scala-reflect" % sv % "provided",
12+
"org.scala-lang" % "scala-compiler" % sv % "provided"
1313
)
1414
}
1515

@@ -40,6 +40,9 @@ startYear := Some(2012)
4040

4141
licenses +=("Scala license", url("https://github.com/scala/async/blob/master/LICENSE"))
4242

43+
// Uncomment to disable test compilation.
44+
// (sources in Test) ~= ((xs: Seq[File]) => xs.filter(f => Seq("TreeInterrogation", "package").exists(f.name.contains)))
45+
4346
pomExtra := (
4447
<developers>
4548
<developer>

project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.12.1
1+
sbt.version=0.12.4

0 commit comments

Comments
 (0)