From fb53404a77ca74742db6e1df5653f6d90660ce25 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Wed, 18 Feb 2026 09:21:02 +0900 Subject: [PATCH] sbt 2.0.0-RC9 --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 2 +- build.sbt | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99b7326..fd073d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - java: 8 distribution: temurin sbt: 1 - - java: 8 + - java: 17 distribution: temurin sbt: 2 runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 73c391e..0fb919f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: uses: actions/setup-java@v5 with: distribution: temurin - java-version: 8 + java-version: 17 cache: sbt - uses: sbt/setup-sbt@v1 - name: Release diff --git a/build.sbt b/build.sbt index 2c2f91b..757acf6 100644 --- a/build.sbt +++ b/build.sbt @@ -8,7 +8,7 @@ homepage := scmInfo.value map (_.browseUrl) scmInfo := Some(ScmInfo(url("https://github.com/sbt/sbt-git"), "scm:git:git@github.com:sbt/sbt-git.git")) lazy val scala212 = "2.12.21" -lazy val scala3 = "3.7.4" +lazy val scala3 = "3.8.1" crossScalaVersions := Seq(scala212, scala3) @@ -24,7 +24,18 @@ libraryDependencies ++= Seq( (pluginCrossBuild / sbtVersion) := { scalaBinaryVersion.value match { case "2.12" => "1.5.8" - case _ => "2.0.0-RC3" + case _ => "2.0.0-RC9" + } +} + +scalacOptions ++= { + scalaBinaryVersion.value match { + case "2.12" => + Seq( + "-release:8" + ) + case "3" => + Nil } }