-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
50 lines (43 loc) · 1.9 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 / majorVersion := 8
ThisBuild / scalaVersion := scala2_13
ThisBuild / isPublicArtefact := true
ThisBuild / scalacOptions ++= Seq("-feature")
lazy val library = Project("library", file("."))
.settings(publish / skip := true)
.aggregate(
crypto,
cryptoJsonPlay28,
cryptoJsonPlay29,
cryptoJsonPlay30
)
lazy val crypto = Project("crypto", file("crypto"))
.settings(
crossScalaVersions := Seq(scala2_13, scala3),
libraryDependencies ++= LibDependencies.cryptoCompile ++ LibDependencies.cryptoTest
)
def shareSources(location: String) = Seq(
Compile / unmanagedSourceDirectories += baseDirectory.value / s"../$location/src/main/scala",
Compile / unmanagedResourceDirectories += baseDirectory.value / s"../$location/src/main/resources",
Test / unmanagedSourceDirectories += baseDirectory.value / s"../$location/src/test/scala",
Test / unmanagedResourceDirectories += baseDirectory.value / s"../$location/src/test/resources"
)
lazy val cryptoJsonPlay28 = Project("crypto-json-play-28", file("crypto-json-play-28"))
.settings(
crossScalaVersions := Seq(scala2_13),
shareSources("crypto-json"),
libraryDependencies ++= LibDependencies.cryptoJsonPlay28Compile ++ LibDependencies.cryptoTest
).dependsOn(crypto)
lazy val cryptoJsonPlay29 = Project("crypto-json-play-29", file("crypto-json-play-29"))
.settings(
crossScalaVersions := Seq(scala2_13),
shareSources("crypto-json"),
libraryDependencies ++= LibDependencies.cryptoJsonPlay29Compile ++ LibDependencies.cryptoTest
).dependsOn(crypto)
lazy val cryptoJsonPlay30 = Project("crypto-json-play-30", file("crypto-json-play-30"))
.settings(
crossScalaVersions := Seq(scala2_13, scala3),
shareSources("crypto-json"),
libraryDependencies ++= LibDependencies.cryptoJsonPlay30Compile ++ LibDependencies.cryptoTest
).dependsOn(crypto)