Skip to content

Commit

Permalink
drop Scala 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed May 12, 2024
1 parent 8f86a85 commit 1697f2c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 262 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/scala.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
java: [8, 11]
scala: ['2_11', '2_12', '2_13', '3']
scala: ['2_12', '2_13', '3']

steps:
- uses: actions/checkout@v4
Expand All @@ -26,9 +26,6 @@ jobs:
- name: Run tests
run: |
case ${{ matrix.scala }} in
"2_11")
sbt -v SetScala211 test unidoc
;;
"2_12")
sbt -v SetScala212 test unidoc
;;
Expand Down
4 changes: 1 addition & 3 deletions build.sbt
Expand Up @@ -8,12 +8,10 @@ import com.typesafe.tools.mima.core._
// Scalate project guarantees bin-compatibities for only core, util
// -----------------------------------------------------------------------------------

def Scala211 = "2.11.12"
def Scala212 = "2.12.19"
def Scala213 = "2.13.14"
def Scala3 = "3.3.3"

addCommandAlias("SetScala211", s"++ ${Scala211}!")
addCommandAlias("SetScala212", s"++ ${Scala212}!")
addCommandAlias("SetScala213", s"++ ${Scala213}!")
addCommandAlias("SetScala3", s"++ ${Scala3}!")
Expand All @@ -22,7 +20,7 @@ name := "scalate"
organization := "org.scalatra.scalate"
version := "1.10.1"
scalaVersion := Scala213
crossScalaVersions := Seq(Scala3, Scala213, Scala212, Scala211)
crossScalaVersions := Seq(Scala3, Scala213, Scala212)
javacOptions ++= Seq("-source", "1.8")
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
startYear := Some(2010)
Expand Down
13 changes: 2 additions & 11 deletions project/Dependencies.scala
Expand Up @@ -5,20 +5,11 @@ import sbt._
object Dependencies {

val scalaParserCombinators = Def.setting(
if (scalaBinaryVersion.value == "2.11") {
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1"
} else {
"org.scala-lang.modules" %% "scala-parser-combinators" % "2.4.0"
}
"org.scala-lang.modules" %% "scala-parser-combinators" % "2.4.0"
)

val scalaXml = Def.setting(
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 11)) =>
"org.scala-lang.modules" %% "scala-xml" % "1.3.1"
case _ =>
"org.scala-lang.modules" %% "scala-xml" % "2.3.0"
}
"org.scala-lang.modules" %% "scala-xml" % "2.3.0"
)

val scalaCompiler = Def.setting(
Expand Down

This file was deleted.

This file was deleted.

Expand Up @@ -23,18 +23,7 @@ package org.fusesource.scalate.scaml
class ScamlTemplateErrorTest extends ScamlTestSupport {
val scalaV = org.fusesource.scalate.buildinfo.BuildInfo.scalaVersion

if (scalaV.startsWith("2.11")) {
testCompilerException(
"Compile Error",
"""
%html
%body
%ul
- for (i <- unknown)
%li= i
""",
"error: not found: value unknown")
} else if (scalaV.startsWith("3")) {
if (scalaV.startsWith("3")) {
testCompilerException(
"Compile Error",
"""
Expand Down

0 comments on commit 1697f2c

Please sign in to comment.