File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ object ScalaModulePlugin extends AutoPlugin {
10
10
11
11
// Settings applied to the entire build when the plugin is loaded.
12
12
13
+ // See https://github.com/sbt/sbt/issues/2082
13
14
override def requires = plugins.JvmPlugin
14
15
override def trigger = allRequirements
15
16
17
+ // Settings in here are implicitly `in ThisBuild`
16
18
override def buildSettings : Seq [Setting [_]] = Seq (
17
19
scalaVersionsByJvm := Map .empty,
18
20
19
- crossScalaVersions in ThisBuild := {
21
+ crossScalaVersions := {
20
22
val OneDot = """ 1\.(\d).*""" .r // 1.6, 1.8
21
23
val Maj = """ (\d+).*""" .r // 9
22
24
val javaVersion = System .getProperty(" java.version" ) match {
@@ -48,7 +50,7 @@ object ScalaModulePlugin extends AutoPlugin {
48
50
scalaVersions
49
51
},
50
52
51
- scalaVersion in ThisBuild := crossScalaVersions.value.head
53
+ scalaVersion := crossScalaVersions.value.head
52
54
)
53
55
54
56
/**
You can’t perform that action at this time.
0 commit comments