Skip to content

Commit 19a9c61

Browse files
authored
Merge pull request sbt#363 from eed3si9n/wip/bump_scala
Update to Scala 2.12.13 + 2.13.4
2 parents fe68250 + 417a30f commit 19a9c61

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

build.sbt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ def commonSettings: Seq[Setting[_]] = Def.settings(
5454
case sv if sv.startsWith("2.10") =>
5555
old diff List("-Xfuture", "-Ywarn-unused", "-Ywarn-unused-import")
5656
case sv if sv.startsWith("2.11") => old ++ List("-Ywarn-unused", "-Ywarn-unused-import")
57-
case sv if sv.startsWith("2.12") => old ++ List("-Ywarn-unused", "-Ywarn-unused-import", "-YdisableFlatCpCaching")
58-
case _ => old
57+
case sv if sv.startsWith("2.12") =>
58+
old ++ List("-Ywarn-unused", "-Ywarn-unused-import", "-YdisableFlatCpCaching")
59+
case _ => old
5960
}
6061
},
6162
inCompileAndTest(
@@ -119,10 +120,6 @@ lazy val lmCore = (project in file("core"))
119120
scalaCheck % Test,
120121
scalaVerify % Test,
121122
),
122-
libraryDependencies ++= (scalaVersion.value match {
123-
case v if v.startsWith("2.12.") => List(compilerPlugin(silencerPlugin))
124-
case _ => List()
125-
}),
126123
libraryDependencies += scalaXml,
127124
resourceGenerators in Compile += Def
128125
.task(

core/src/test/scala/example/tests/CrossVersionCompatTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package example.tests
22

33
import sbt.librarymanagement.{ CrossVersion, Disabled }
44
import verify.BasicTestSuite
5-
import com.github.ghik.silencer.silent
5+
import scala.annotation.nowarn
66

7-
@silent
7+
@nowarn
88
object CrossVersionCompatTest extends BasicTestSuite {
99
test("CrossVersion.Disabled is typed to be Disabled") {
1010
assert(CrossVersion.Disabled match {

project/Dependencies.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import Keys._
33
import sbt.contraband.ContrabandPlugin.autoImport._
44

55
object Dependencies {
6-
val scala212 = "2.12.12"
6+
val scala212 = "2.12.13"
77
val scala213 = "2.13.4"
88

99
def nightlyVersion: Option[String] =
1010
sys.env.get("BUILD_VERSION") orElse sys.props.get("sbt.build.version")
1111

12-
private val ioVersion = nightlyVersion.getOrElse("1.4.0")
12+
private val ioVersion = nightlyVersion.getOrElse("1.5.0-M1")
1313
private val utilVersion = nightlyVersion.getOrElse("1.4.0")
1414

1515
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion
@@ -63,5 +63,4 @@ object Dependencies {
6363
}
6464
val gigahorseOkhttp = "com.eed3si9n" %% "gigahorse-okhttp" % "0.5.0"
6565
val okhttpUrlconnection = "com.squareup.okhttp3" % "okhttp-urlconnection" % "3.7.0"
66-
val silencerPlugin = "com.github.ghik" %% "silencer-plugin" % "1.4.1"
6766
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.4.5
1+
sbt.version=1.4.6

0 commit comments

Comments
 (0)