-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.sbt
49 lines (41 loc) · 1.49 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
import LibDependencies.PlayVersion
val appName = "emailaddress"
lazy val scala2_12 = "2.12.16"
lazy val scala2_13 = "2.13.12"
ThisBuild / scalaVersion := scala2_13
ThisBuild / majorVersion := 4
ThisBuild / isPublicArtefact := true
lazy val commonSettings =
ScoverageSettings() ++
Seq(
scalacOptions ++= Seq(
"-feature",
"-language:implicitConversions"
)
)
lazy val emailaddress = Project(appName, file("."))
.settings(publish / skip := true)
.aggregate(
play29,
play30
)
lazy val play29 = Project(s"$appName-play-29", file("play-29"))
.settings(
crossScalaVersions := Seq(scala2_13),
libraryDependencies ++= LibDependencies.compileDependencies(PlayVersion.Play29) +: LibDependencies.testDependencies,
sharedSources
)
.settings(commonSettings)
lazy val play30 = Project(s"$appName-play-30", file("play-30"))
.settings(
crossScalaVersions := Seq(scala2_13),
libraryDependencies ++= LibDependencies.compileDependencies(PlayVersion.Play30) +: LibDependencies.testDependencies,
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"
)