Skip to content
This repository was archived by the owner on Sep 3, 2020. It is now read-only.

Commit 2fe97a5

Browse files
committed
Cross publish only to 2.12.2 and fix 2.11 compilation options
Scala version <2.12.2 doesn't have the new compilation options, therefore we have to reintroduce the older options. We drop 2.12.1 support also because we probably don't need it anymore.
1 parent a58229a commit 2fe97a5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

build.sbt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version := "0.13.0-SNAPSHOT"
33
scalaVersion := "2.12.2"
44
moduleName := name.value
55
organization := "org.scala-refactoring"
6-
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.1")
6+
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.2")
77
crossVersion := CrossVersion.full
88
fork := true
99
parallelExecution in Test := false
@@ -21,7 +21,21 @@ libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
2121
})
2222

2323
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
24-
case Some((2, v)) if v == 11 || v == 12 => Seq(
24+
case Some((2, 11)) => Seq(
25+
"-deprecation:false",
26+
"-encoding", "UTF-8",
27+
"-feature",
28+
"-language:_",
29+
"-unchecked",
30+
"-Xlint",
31+
"-Xfuture",
32+
"-Xfatal-warnings",
33+
"-Yno-adapted-args",
34+
"-Ywarn-dead-code",
35+
"-Ywarn-unused-import",
36+
"-Ywarn-unused"
37+
)
38+
case Some((2, 12)) => Seq(
2539
"-deprecation:false",
2640
"-encoding", "UTF-8",
2741
"-feature",

0 commit comments

Comments
 (0)