File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 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 {
1010
1111 // Settings applied to the entire build when the plugin is loaded.
1212
13+ // See https://github.com/sbt/sbt/issues/2082
1314 override def requires = plugins.JvmPlugin
1415 override def trigger = allRequirements
1516
17+ // Settings in here are implicitly `in ThisBuild`
1618 override def buildSettings : Seq [Setting [_]] = Seq (
1719 scalaVersionsByJvm := Map .empty,
1820
19- crossScalaVersions in ThisBuild := {
21+ crossScalaVersions := {
2022 val OneDot = """ 1\.(\d).*""" .r // 1.6, 1.8
2123 val Maj = """ (\d+).*""" .r // 9
2224 val javaVersion = System .getProperty(" java.version" ) match {
@@ -48,7 +50,7 @@ object ScalaModulePlugin extends AutoPlugin {
4850 scalaVersions
4951 },
5052
51- scalaVersion in ThisBuild := crossScalaVersions.value.head
53+ scalaVersion := crossScalaVersions.value.head
5254 )
5355
5456 /**
You can’t perform that action at this time.
0 commit comments