50
50
* https://groups.google.com/d/topic/scala-internals/gp5JsM1E0Fo/discussion
51
51
*/
52
52
53
+ val boostrapScalaVersion = " 2.11.5"
54
+
53
55
lazy val commonSettings = Seq [Setting [_]](
54
56
organization := " org.scala-lang" ,
55
57
version := " 2.11.6-SNAPSHOT" ,
56
- scalaVersion := " 2.11.5 " ,
58
+ scalaVersion := boostrapScalaVersion ,
57
59
// we don't cross build Scala itself
58
60
crossPaths := false ,
59
61
// do not add Scala library jar as a dependency automatically
@@ -170,13 +172,13 @@ lazy val repl = configureAsSubproject(project).
170
172
settings(disableDocsAndPublishingTasks : _* ).
171
173
dependsOn(compiler)
172
174
175
+ def moduleDependency (name : String ) =
176
+ // exclusion of the scala-library transitive dependency avoids eviction warnings during `update`.
177
+ " org.scala-lang.modules" %% name % " 1.0.3" exclude(" org.scala-lang" , " scala-library" )
178
+
173
179
lazy val scaladoc = configureAsSubproject(project).
174
180
settings(
175
- libraryDependencies ++= Seq (
176
- " org.scala-lang.modules" %% " scala-xml" % " 1.0.3" ,
177
- " org.scala-lang.modules" %% " scala-parser-combinators" % " 1.0.3" ,
178
- " org.scala-lang.modules" %% " scala-partest" % " 1.0.5"
179
- )
181
+ libraryDependencies ++= Seq (" scala-xml" , " scala-parser-combinators" , " scala-partest" ).map(moduleDependency)
180
182
).
181
183
settings(disableDocsAndPublishingTasks : _* ).
182
184
dependsOn(compiler)
@@ -195,12 +197,10 @@ lazy val asm = configureAsForkOfJavaProject(project)
195
197
196
198
lazy val root = (project in file(" ." )).
197
199
aggregate(library, forkjoin, reflect, compiler, asm, interactive, repl,
198
- scaladoc, scalap).
199
- // make the root project an aggragate-only
200
- // we disable sbt's built-in Ivy plugin in the root project
201
- // so it doesn't produce any artifact including not building
202
- // an empty jar
203
- disablePlugins(plugins.IvyPlugin )
200
+ scaladoc, scalap).settings(
201
+ scalaVersion := boostrapScalaVersion,
202
+ ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true ) }
203
+ )
204
204
205
205
/**
206
206
* Configures passed project as a subproject (e.g. compiler or repl)
0 commit comments