-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #334 from bjaglin/scala211
drop support for Scala 2.11
- Loading branch information
Showing
17 changed files
with
78 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
src/sbt-test/sbt-scalafix/cross-build/scala210/src/test/scala/MainTest.scala
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/sbt-test/sbt-scalafix/cross-build/scala211/src/main/scala/Main.scala
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/sbt-test/sbt-scalafix/cross-build/scala211/src/test/scala/MainTest.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,77 @@ | ||
val V = _root_.scalafix.sbt.BuildInfo | ||
|
||
// 2.10 is not supported | ||
lazy val scala210 = project.settings( | ||
scalaVersion := "2.10.4", | ||
libraryDependencies := Nil, | ||
scalacOptions := Nil | ||
lazy val config = project | ||
|
||
lazy val unsupported = project.settings( | ||
// 2.11.x is not supported | ||
scalaVersion := "2.11.12" | ||
) | ||
|
||
// 2.11.x is supported | ||
lazy val scala211_old = project.settings( | ||
// semanticdb-scalac_2.11.0 was never available | ||
scalaVersion := "2.11.0" | ||
lazy val bumpScala = project.settings( | ||
// semanticdb-scalac_2.12.0 was never available | ||
scalaVersion := "2.12.0" | ||
) | ||
|
||
// 2.11.x is supported | ||
lazy val scala211 = project.settings( | ||
// semanticdb-scalac_2.11.11 no longer available after 4.1.9 | ||
scalaVersion := "2.11.11" | ||
lazy val downgradeScalameta = project.settings( | ||
// semanticdb-scalac_2.12.4 no longer available after 4.1.9 | ||
scalaVersion := "2.12.4" | ||
) | ||
|
||
// 2.12.x is supported | ||
lazy val scala212 = project.settings( | ||
lazy val upgradeScalameta = project.settings( | ||
// semanticdb-scalac_2.12.15 not yet available in 4.4.10, became available as of 4.4.28 | ||
scalaVersion := "2.12.15" | ||
) | ||
|
||
// 2.13.x is supported | ||
lazy val scala213 = project.settings( | ||
// semanticdb-scalac_2.13.4 available in 4.4.10, became available as of 4.4.0 | ||
lazy val available = project.settings( | ||
// semanticdb-scalac_2.13.4 available in 4.4.10 | ||
scalaVersion := "2.13.4", | ||
crossScalaVersions := Seq("2.12.15") | ||
) | ||
|
||
TaskKey[Unit]("check") := { | ||
assert((scala210 / semanticdbEnabled).value == false) | ||
assert((scala210 / scalaVersion).value == "2.10.4") | ||
assert((scala210 / Compile / compile / scalacOptions).value.isEmpty) | ||
assert((unsupported / semanticdbEnabled).value == false) | ||
assert((unsupported / scalaVersion).value == "2.11.12") | ||
assert((unsupported / Compile / compile / scalacOptions).value.isEmpty) | ||
|
||
assert((scala211_old / semanticdbEnabled).value == true) | ||
assert((scala211_old / scalaVersion).value == "2.11.12") | ||
assert((scala211_old / semanticdbCompilerPlugin).value.revision == "4.4.10") | ||
assert((bumpScala / semanticdbEnabled).value == true) | ||
assert((bumpScala / scalaVersion).value == V.scala212) | ||
assert( | ||
(bumpScala / semanticdbCompilerPlugin).value.revision == V.scalametaVersion | ||
) | ||
assert( | ||
(scala211_old / Compile / compile / scalacOptions).value | ||
(bumpScala / Compile / compile / scalacOptions).value | ||
.count(_ == "-Yrangepos") == 1 | ||
) | ||
|
||
assert((scala211 / semanticdbEnabled).value == true) | ||
assert((scala211 / scalaVersion).value == "2.11.11") | ||
assert((scala211 / semanticdbCompilerPlugin).value.revision == "4.1.9") | ||
assert((downgradeScalameta / semanticdbEnabled).value == true) | ||
assert((downgradeScalameta / scalaVersion).value == "2.12.4") | ||
assert( | ||
(scala211 / Compile / compile / scalacOptions).value | ||
(downgradeScalameta / semanticdbCompilerPlugin).value.revision == "4.1.9" | ||
) | ||
assert( | ||
(downgradeScalameta / Compile / compile / scalacOptions).value | ||
.count(_ == "-Yrangepos") == 1 | ||
) | ||
|
||
assert((scala212 / semanticdbEnabled).value == true) | ||
assert((scala212 / scalaVersion).value == "2.12.15") | ||
assert((scala212 / semanticdbCompilerPlugin).value.revision == "4.4.28") | ||
assert((upgradeScalameta / semanticdbEnabled).value == true) | ||
assert((upgradeScalameta / scalaVersion).value == "2.12.15") | ||
assert( | ||
(upgradeScalameta / semanticdbCompilerPlugin).value.revision == "4.4.28" | ||
) | ||
assert( | ||
(scala212 / Compile / compile / scalacOptions).value | ||
(upgradeScalameta / Compile / compile / scalacOptions).value | ||
.count(_ == "-Yrangepos") == 1 | ||
) | ||
|
||
assert((scala213 / semanticdbEnabled).value == true) | ||
assert((scala213 / scalaVersion).value == "2.13.4") | ||
assert((scala213 / semanticdbCompilerPlugin).value.revision == "4.4.10") | ||
assert((available / semanticdbEnabled).value == true) | ||
assert((available / scalaVersion).value == "2.13.4") | ||
assert((available / semanticdbCompilerPlugin).value.revision == "4.4.10") | ||
assert( | ||
(scala213 / Test / compile / scalacOptions).value | ||
(available / Test / compile / scalacOptions).value | ||
.count(_ == "-Yrangepos") == 1 | ||
) | ||
} | ||
|
||
TaskKey[Unit]("checkVersion") := { | ||
assert((scala213 / scalaVersion).value == "2.12.15") | ||
assert((available / scalaVersion).value == "2.12.15") | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters