-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from AndyHWChung/play-29-30
add play 2.9+3.0 support
- Loading branch information
Showing
48 changed files
with
119 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ target | |
|
||
nohup.out | ||
rebel.xml | ||
|
||
.bsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,50 @@ | ||
val scala2_12 = "2.12.15" | ||
val scala2_13 = "2.13.8" | ||
val scala2_13 = "2.13.12" | ||
|
||
val silencerVersion = "1.7.8" | ||
ThisBuild / scalaVersion := scala2_13 | ||
ThisBuild / majorVersion := 9 | ||
ThisBuild / isPublicArtefact := true | ||
ThisBuild / scalacOptions += "-Wconf:src=src_managed/.*:s" // silence all warnings on autogenerated files | ||
|
||
lazy val domain = (project in file(".")) | ||
.settings(publish / skip := true) | ||
.aggregate( | ||
play28, | ||
play29, | ||
play30 | ||
) | ||
|
||
lazy val commonSettings = | ||
ScalariformSettings() ++ ScoverageSettings() | ||
|
||
lazy val play28 = Project("domain-play-28", file("play-28")) | ||
.settings( | ||
scalaVersion := scala2_12, | ||
crossScalaVersions := Seq(scala2_12, scala2_13), | ||
majorVersion := 8, | ||
isPublicArtefact := true, | ||
libraryDependencies ++= PlayCrossCompilation.dependencies( | ||
shared = Seq( | ||
"org.scalatest" %% "scalatest" % "3.2.11" % "test", | ||
"org.scalatestplus" %% "scalacheck-1-15" % "3.2.11.0" % "test", | ||
"org.pegdown" % "pegdown" % "1.6.0" % "test", | ||
"com.vladsch.flexmark" % "flexmark-all" % "0.62.2" % "test" | ||
), | ||
play28 = Seq( | ||
"com.typesafe.play" %% "play-json" % "2.8.2" | ||
) | ||
) | ||
libraryDependencies ++= LibDependencies.play28 ++ LibDependencies.test, | ||
libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always, | ||
sharedSources | ||
) | ||
.settings(commonSettings) | ||
|
||
lazy val play29 = Project("domain-play-29", file("play-29")) | ||
.settings( | ||
crossScalaVersions := Seq(scala2_13), | ||
libraryDependencies ++= LibDependencies.play29 ++ LibDependencies.test, | ||
sharedSources | ||
) | ||
.settings(PlayCrossCompilation.playCrossCompilationSettings) | ||
.settings(ScalariformSettings()) | ||
.settings(ScoverageSettings()) | ||
.settings(SilencerSettings(silencerVersion)) | ||
.settings(commonSettings) | ||
|
||
lazy val play30 = Project("domain-play-30", file("play-30")) | ||
.settings( | ||
crossScalaVersions := Seq(scala2_13), | ||
libraryDependencies ++= LibDependencies.play30 ++ LibDependencies.test, | ||
sharedSources | ||
) | ||
.settings(commonSettings) | ||
|
||
def sharedSources = Seq( | ||
Compile / unmanagedSourceDirectories += baseDirectory.value / "../shared/src/main/scala", | ||
Compile / unmanagedResourceDirectories += baseDirectory.value / "../shared/src/main/resources", | ||
Test / unmanagedSourceDirectories += baseDirectory.value / "../shared/src/test/scala", | ||
Test / unmanagedResourceDirectories += baseDirectory.value / "../shared/src/test/resources" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import sbt._ | ||
|
||
object LibDependencies { | ||
val play28 = Seq( | ||
"com.typesafe.play" %% "play" % "2.8.21" | ||
) | ||
|
||
val play29 = Seq( | ||
"com.typesafe.play" %% s"play" % "2.9.0" | ||
) | ||
|
||
val play30 = Seq( | ||
"org.playframework" %% s"play" % "3.0.0" | ||
) | ||
|
||
val test = Seq( | ||
"org.scalatest" %% "scalatest" % "3.2.11", | ||
"org.scalatestplus" %% "scalacheck-1-15" % "3.2.11.0", | ||
"org.pegdown" % "pegdown" % "1.6.0", | ||
"com.vladsch.flexmark" % "flexmark-all" % "0.62.2" | ||
).map(_ % Test) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.5.8 | ||
sbt.version=1.9.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
resolvers += MavenRepository("HMRC-open-artefacts-maven2", "https://open.artefacts.tax.service.gov.uk/maven2") | ||
resolvers += Resolver.url("HMRC-open-artefacts-ivy2", url("https://open.artefacts.tax.service.gov.uk/ivy2"))(Resolver.ivyStylePatterns) | ||
|
||
addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "3.6.0") | ||
addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "3.15.0") | ||
|
||
addSbtPlugin("uk.gov.hmrc" % "sbt-play-cross-compilation" % "2.3.0") | ||
|
||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") | ||
|
||
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9") | ||
|
||
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3" exclude("org.scala-lang.modules", "scala-xml_2.12")) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters