Skip to content

Commit

Permalink
Merge pull request #231 from mkurz/scala_3_ci
Browse files Browse the repository at this point in the history
Add Scala 3 to crossScalaVersions and CI
  • Loading branch information
mkurz authored Jul 15, 2023
2 parents e39acbc + ea46235 commit dfa5930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.13.x
scala: 2.13.x, 3.x
cmd: sbt ++$MATRIX_SCALA publishLocal # Check that we can actually build and package the library

finish:
Expand Down
6 changes: 2 additions & 4 deletions project/OmnidocBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object OmnidocBuild {
val playVersion = sys.props.getOrElse("play.version", "2.9.0-M6")
val scalaTestPlusPlayVersion = sys.props.getOrElse("scalatestplus-play.version", "6.0.0-M6")
val playJsonVersion = sys.props.getOrElse("play-json.version", "2.10.0-RC9")
val playSlickVersion = sys.props.getOrElse("play-slick.version", "5.1.0")
val playSlickVersion = sys.props.getOrElse("play-slick.version", "5.2.0-M1")
val maybeTwirlVersion = sys.props.get("twirl.version")

// List Play artifacts so that they can be added as dependencies
Expand Down Expand Up @@ -118,7 +118,7 @@ object OmnidocBuild {
def projectSettings: Seq[Setting[_]] = Seq(
name := "play-omnidoc",
ThisBuild / playBuildRepoName := "omnidoc",
crossScalaVersions := Seq(ScalaVersions.scala213),
crossScalaVersions := Seq(ScalaVersions.scala213, ScalaVersions.scala3),
resolvers ++= Resolver.sonatypeOssRepos("snapshots") ++
Resolver.sonatypeOssRepos("releases"),
useCoursier := false, // so updatePlaydocClassifiers isn't empty
Expand All @@ -136,8 +136,6 @@ object OmnidocBuild {
libraryDependencies ++= externalModules.map(_ % Omnidoc.name),
libraryDependencies ++= Seq(
playOrganisation %% "play-docs" % playVersion,
compilerPlugin("com.github.ghik" %% "silencer-plugin" % "1.4.2"),
"com.github.ghik" %% "silencer-lib" % "1.4.2" % Omnidoc.name
)
)

Expand Down

0 comments on commit dfa5930

Please sign in to comment.