Skip to content

Commit

Permalink
Enable sbt 2.x cross building
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Oct 12, 2024
1 parent 8bfaa39 commit 5bfe3bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
java-version: 8
cache: sbt
- uses: sbt/setup-sbt@v1
- run: sbt compile
- run: sbt +compile
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ inThisBuild(
url("https://geirsson.com")
)
),
crossScalaVersions := Seq(scala212)
)
)

onLoadMessage := s"Welcome to sbt-ci-release ${version.value}"

crossScalaVersions := Nil
publish / skip := true // don't publish the root project

lazy val plugin = project
.enablePlugins(SbtPlugin)
.settings(
moduleName := "sbt-ci-release",
crossScalaVersions := Seq(scala212, scala3),
(pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.5.8"
case _ => "2.0.0-M2"
}
},
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1"),
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.0"),
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.1.0"),
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.0"),
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
Expand Down

0 comments on commit 5bfe3bd

Please sign in to comment.