Skip to content

Commit 694a820

Browse files
authored
Merge pull request #236 from cucumber/drop-scala-211
Drop support for Scala 2.11
2 parents c19d261 + 5e1f2d3 commit 694a820

File tree

6 files changed

+5
-181
lines changed

6 files changed

+5
-181
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Check out the [Upgrade Guide](docs/upgrade_v8.md).
2323

2424
### Removed
2525

26+
- [Scala] Remove support for Scala 2.11
2627
- [Core] Remove deprecated `io.cucumber.scala.TL`
2728

2829
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The table below shows the compatible versions:
2121

2222
| Cucumber Scala version | Cucumber Core version | Scala versions |
2323
|------------------------|-----------------------|-----------------------|
24-
| 8.x | 7.x | 2.11, 2.12, 2.13, 3.0 |
24+
| 8.x | 7.x | 2.12, 2.13, 3.0 |
2525
| 7.x | 6.x | 2.11, 2.12, 2.13, 3.0 |
2626
| 6.x | 6.x | 2.11, 2.12, 2.13 |
2727
| 5.x | 5.x | 2.11, 2.12, 2.13 |

build.sbt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ ThisBuild / homepage := Some(
3030

3131
// Scala versions
3232

33-
val scala211 = "2.11.12"
3433
val scala212 = "2.12.13"
3534
val scala213 = "2.13.5"
3635
val scala3 = "3.0.0"
@@ -50,7 +49,6 @@ lazy val commonSettings = Seq(
5049
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
5150
scalacOptions ++= {
5251
CrossVersion.partialVersion(scalaVersion.value) match {
53-
case Some((2, 11)) => ScalacOptions.scalacOptions211
5452
case Some((2, 12)) => ScalacOptions.scalacOptions212
5553
case Some((2, 13)) => ScalacOptions.scalacOptions213
5654
case Some((3, 0)) => ScalacOptions.scalacOptions3
@@ -86,17 +84,15 @@ lazy val cucumberScala = (projectMatrix in file("cucumber-scala"))
8684
),
8785
libraryDependencies ++= {
8886
CrossVersion.partialVersion(scalaVersion.value) match {
89-
case Some((2, n)) if n <= 12 =>
87+
case Some((2, n)) if n == 12 =>
9088
List("org.scala-lang.modules" %% "scala-collection-compat" % "2.4.4")
9189
case _ => Nil
9290
}
9391
},
9492
Compile / unmanagedSourceDirectories ++= {
9593
val sourceDir = (Compile / sourceDirectory).value
9694
CrossVersion.partialVersion(scalaVersion.value) match {
97-
case Some((2, n)) if n <= 11 =>
98-
Seq(sourceDir / "scala-2", sourceDir / "scala-2.11")
99-
case Some((2, n)) if n > 11 =>
95+
case Some((2, n)) =>
10096
Seq(sourceDir / "scala-2")
10197
case Some((3, 0)) =>
10298
Seq(sourceDir / "scala-3")
@@ -123,7 +119,7 @@ lazy val cucumberScala = (projectMatrix in file("cucumber-scala"))
123119
Seq(file)
124120
}.taskValue
125121
)
126-
.jvmPlatform(scalaVersions = Seq(scala3, scala213, scala212, scala211))
122+
.jvmPlatform(scalaVersions = Seq(scala3, scala213, scala212))
127123

128124
// Examples project
129125
lazy val examples = (projectMatrix in file("examples"))

cucumber-scala/src/main/scala-2.11/io/cucumber/scala/package.scala

Lines changed: 0 additions & 162 deletions
This file was deleted.

cucumber-scala/src/test/scala/io/cucumber/scala/ScalaBackendTest.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class ScalaBackendTest {
2323
private val fakeLookup: Lookup = mock(classOf[Lookup])
2424
private val fakeContainer: Container = mock(classOf[Container])
2525

26-
// Note: keep unnecessary "new" for Scala 2.11 compat
2726
private val classLoaderSupplier: Supplier[ClassLoader] = () =>
2827
Thread.currentThread().getContextClassLoader
2928

project/ScalacOptions.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,4 @@ object ScalacOptions {
6666
"-language:higherKinds" // Allow higher-kinded types
6767
)
6868

69-
val scalacOptions211 = Seq(
70-
"-deprecation",
71-
"-encoding",
72-
"UTF-8", // yes, this is 2 args
73-
"-feature",
74-
"-language:implicitConversions",
75-
"-language:higherKinds", // Allow higher-kinded types
76-
"-target:jvm-1.8"
77-
)
78-
7969
}

0 commit comments

Comments
 (0)