-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
45 lines (40 loc) · 1.22 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
import Dependencies._
import ReleaseTransformations._
import sbtversionpolicy.withsbtrelease.ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease
name := "targeting-client"
lazy val root = (project in file(".")).aggregate(
client_play_json28,
client_play_json30,
).settings(
publish / skip := true,
sonatypeReleaseSettings
)
val sonatypeReleaseSettings = Seq(
releaseVersion := fromAggregatedAssessedCompatibilityWithLatestRelease().value,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion
)
)
def clientWith(playJsonVersion: PlayJsonVersion) =
Project(playJsonVersion.projectId, file(playJsonVersion.projectId))
.settings(
licenses := Seq(License.Apache2),
scalaVersion := "2.13.12",
organization := "com.gu.targeting-client",
scalacOptions ++= Seq("-feature", "-deprecation", "-release:11"),
libraryDependencies ++= Seq(
commonsIo,
scalaTest,
http,
playJsonVersion.lib
)
)
lazy val client_play_json28 = clientWith(PlayJsonVersion.V28)
lazy val client_play_json30 = clientWith(PlayJsonVersion.V30)