From 814764eeb3019e1a7392591a68625741df094d4d Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Sun, 6 Oct 2024 15:07:28 +0900 Subject: [PATCH] add sbt 2.x build setting --- .github/workflows/ci.yml | 2 +- build.sbt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a202d50..aafed07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,4 +16,4 @@ jobs: distribution: 'temurin' java-version: '8' cache: 'sbt' - - run: sbt +test scripted mimaReportBinaryIssues + - run: sbt "+ test" "+ scripted" mimaReportBinaryIssues diff --git a/build.sbt b/build.sbt index b44aec3..363226b 100644 --- a/build.sbt +++ b/build.sbt @@ -61,9 +61,11 @@ val sbtdynver = project.dependsOn(dynverLib).enablePlugins(SbtPlugin).settings( scriptedDependencies := Seq(dynver / publishLocal, publishLocal).dependOn.value, scriptedLaunchOpts += s"-Dplugin.version=${version.value}", scriptedLaunchOpts += s"-Dsbt.boot.directory=${file(sys.props("user.home")) / ".sbt" / "boot"}", + crossScalaVersions += scala3, (pluginCrossBuild / sbtVersion) := { scalaBinaryVersion.value match { case "2.12" => "1.3.0" + case _ => "2.0.0-M2" } }, publishSettings, @@ -73,6 +75,7 @@ lazy val publishSettings = Def.settings( MimaSettings.mimaSettings, ) +crossScalaVersions += scala3 mimaPreviousArtifacts := Set.empty publish / skip := true Global / cancelable := true