From 8ed5952101e3a243357ee62012db48161485c1ce Mon Sep 17 00:00:00 2001 From: regis-leray Date: Wed, 1 Jun 2022 16:11:52 -0400 Subject: [PATCH] scala 2 --- .github/workflows/ci.yml | 8 ++------ project/BuildHelper.scala | 20 +++----------------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b36bc7b..4d1950ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: fail-fast: false matrix: java: ['adopt@1.8'] - scala: ['2.11.12', '2.12.15', '2.13.8'] + scala: ['2.12.15', '2.13.8', '3.1.2'] steps: - name: Checkout current branch uses: actions/checkout@v3.0.2 @@ -63,12 +63,8 @@ jobs: - name: Start containers run: | docker-compose -f "docker-compose.yml" up -d --build - - name: Test 2.x - if: ${{ !startsWith(matrix.scala, '3.') }} + - name: Test run: ./sbt ++${{ matrix.scala }}! test -# - name: Test 3.x -# if: ${{ startsWith(matrix.scala, '3.') }} -# run: ./sbt ++${{ matrix.scala }}! testDotty testJvms: runs-on: ubuntu-20.04 diff --git a/project/BuildHelper.scala b/project/BuildHelper.scala index 4e315b86..4309c028 100644 --- a/project/BuildHelper.scala +++ b/project/BuildHelper.scala @@ -8,9 +8,10 @@ import BuildInfoKeys._ import scalafix.sbt.ScalafixPlugin.autoImport._ object BuildHelper { + val Scala211 = "2.11.12" val Scala212 = "2.12.15" val Scala213 = "2.13.5" - val ScalaDotty = "3.1.0" + val ScalaDotty = "3.1.2" private val stdOptions = Seq( "-deprecation", @@ -108,28 +109,13 @@ object BuildHelper { "-Xmax-classfile-name", "242" ) ++ std2xOptions ++ optimizerOptions(optimize) - case Some((2, 11)) => - Seq( - "-Ypartial-unification", - "-Yno-adapted-args", - "-Ywarn-inaccessible", - "-Ywarn-infer-any", - "-Ywarn-nullary-override", - "-Ywarn-nullary-unit", - "-Xexperimental", - "-Ywarn-unused-import", - "-Xfuture", - "-Xsource:2.13", - "-Xmax-classfile-name", - "242" - ) case _ => Seq.empty } def stdSettings(prjName: String) = Seq( name := s"$prjName", - crossScalaVersions := Seq(Scala212, Scala213), + crossScalaVersions := Seq(Scala211, Scala212, Scala213), ThisBuild / scalaVersion := Scala213, scalacOptions := stdOptions ++ extraOptions(scalaVersion.value, optimize = !isSnapshot.value), semanticdbEnabled := scalaVersion.value != ScalaDotty, // enable SemanticDB