diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1375e2f3..3655afd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - uses: olafurpg/setup-scala@v13 with: java-version: 17 - - run: sbt test scripted + - run: sbt "test; scripted sbt-scalafix/*" windows: name: Windows tests runs-on: windows-latest diff --git a/build.sbt b/build.sbt index b8e244e7..6b8ed8a4 100644 --- a/build.sbt +++ b/build.sbt @@ -50,8 +50,12 @@ scalaVersion := "2.12.15" // keep this as low as possible to avoid running into binary incompatibility such as https://github.com/sbt/sbt/issues/5049 pluginCrossBuild / sbtVersion := "1.2.1" -// first release that can build 2.13 (as it bring a Zinc version with a compiler-bridge published for 2.13) -scriptedSbt := "1.2.7" +scriptedSbt := { + if (System.getProperty("java.specification.version").toDouble < 17) + "1.2.7" // first release that can build 2.13 (as it bring a Zinc version with a compiler-bridge published for 2.13) + else + "1.5.5" // first release that supports JDK17 +} libraryDependencies += compilerPlugin(scalafixSemanticdb)