Skip to content

Commit ea0f26f

Browse files
committed
Small cleanups
1 parent 160bf2c commit ea0f26f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/main/scala/ScalaModulePlugin.scala

+4-2
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)