Skip to content

Commit

Permalink
Disable play2_9 on java 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdziuban committed Jun 13, 2023
1 parent 488009d commit 355ea1f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,17 @@ lazy val play = simpleProj(projectMatrix.in(file("play")), "play", List(Platform
.settings(libraryDependencies += playCore("2.8.18").value cross CrossVersion.for3Use2_13)
.dependsOn(core % "compile->compile;test->test")

lazy val play2_9 = simpleProj(projectMatrix.in(file("play2_9")), "play2_9", List(Platform.Jvm), modScalaVersions = _ => _.filterNot(_.startsWith("2.12")))
.settings(publishSettings)
.settings(
libraryDependencies += playCore("2.9.0-M6").value,
lazy val play2_9 = {
lazy val play2_9 = simpleProj(projectMatrix.in(file("play2_9")), "play2_9", List(Platform.Jvm), modScalaVersions = _ => _.filterNot(_.startsWith("2.12")))
.settings(publishSettings)
.settings(libraryDependencies += playCore("2.9.0-M6").value)
.dependsOn(core % "compile->compile;test->test")

if (System.getProperty("java.version").startsWith("1.8")) play2_9 else play2_9.settings(
Compile / scalaSource := (ThisBuild / baseDirectory).value / "play" / "src" / "main" / "scala",
Test / scalaSource := (ThisBuild / baseDirectory).value / "play" / "src" / "test" / "scala",
)
.dependsOn(core % "compile->compile;test->test")
}

lazy val bench = http4sProj(projectMatrix.in(file("bench")), "bench", _ => List(Platform.Jvm))(
_ => sjsNowarnGlobalECSettings,
Expand Down

0 comments on commit 355ea1f

Please sign in to comment.