Skip to content

Commit

Permalink
Cross-build for sbt 2.0.0-M2 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippus authored Oct 27, 2024
1 parent e95c48f commit e5d2057
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
distribution: temurin
java-version: 8
- name: Run tests
run: sbt clean test scripted
run: sbt clean +test +scripted
11 changes: 10 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ developers := List(
)

enablePlugins(SbtPlugin)
pluginCrossBuild / sbtVersion := "1.10.0" // minimum version we target

scalaVersion := "2.12.20"
crossScalaVersions += "3.3.4"

pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.12" => "1.10.0"
case _ => "2.0.0-M2"
}
}

Compile / packageBin / packageOptions += Package.ManifestAttributes(
"Automatic-Module-Name" -> "nl.gn0s1s.pekko.versioncheck"
Expand Down

0 comments on commit e5d2057

Please sign in to comment.