-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.sbt
50 lines (43 loc) · 1.69 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
val scala2_13 = "2.13.12"
val scala3 = "3.3.3"
ThisBuild / scalaVersion := scala2_13
ThisBuild / majorVersion := 10
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(
crossScalaVersions := Seq(scala2_13),
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(commonSettings)
lazy val play30 = Project("domain-play-30", file("play-30"))
.settings(
crossScalaVersions := Seq(scala2_13, scala3),
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"
)