From 2358f04da7d88e9045f17e4574358879313ade0e Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Fri, 30 Sep 2022 15:29:36 +0200 Subject: [PATCH] Cross build against Scala 2.12 because it's need by a sbt-plugin 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. --- .github/workflows/build-test.yml | 2 +- build.sbt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 6bf912c..b3a38bf 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -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: diff --git a/build.sbt b/build.sbt index 725d102..c8a0c95 100644 --- a/build.sbt +++ b/build.sbt @@ -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 @@ -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",