Skip to content

Commit

Permalink
Cross build against Scala 2.12 because it's need by a sbt-plugin
Browse files Browse the repository at this point in the history
The project is defined as interplay PlayLibrary, which however dropped
Scala 2.12, because a PlayLibrary is meant to be used for libraries
not for plugins. So we need to explicitly build for 2.12.
  • Loading branch information
mkurz committed Sep 30, 2022
1 parent 6595e82 commit 2358f04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: playframework/.github/.github/workflows/cmd.yml@v2
with:
java: 11, 8
scala: 2.13.8
scala: 2.12.15, 2.13.8
cmd: sbt ++$MATRIX_SCALA test

finish:
Expand Down
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import interplay.ScalaVersions._

// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
(ThisBuild / dynverVTagPrefix) := false

Expand All @@ -10,6 +12,9 @@ Global / onLoad := (Global / onLoad).value.andThen { s =>

lazy val `play-doc` = (project in file("."))
.enablePlugins(PlayLibrary, SbtTwirl, PlayReleaseBase)
.settings(
crossScalaVersions := Seq(scala212, scala213)
)

libraryDependencies ++= Seq(
"org.pegdown" % "pegdown" % "1.6.0",
Expand Down

0 comments on commit 2358f04

Please sign in to comment.