-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
66 lines (58 loc) · 1.63 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import ReleaseTransformations.*
import sbtversionpolicy.withsbtrelease.ReleaseVersion
name := "simple-configuration"
val awsSdkVersion = "2.30.20"
scalaVersion := "2.13.16"
val sharedSettings = Seq(
scalaVersion := "2.13.16",
crossScalaVersions := Seq("3.3.5", scalaVersion.value, "2.12.20"),
licenses := Seq(License.Apache2),
organization := "com.gu",
scalacOptions := Seq("-release:11")
)
val core = project
.settings(sharedSettings)
.settings(
name := "simple-configuration-core",
libraryDependencies ++= Seq(
"software.amazon.awssdk" % "ec2" % awsSdkVersion,
"software.amazon.awssdk" % "autoscaling" % awsSdkVersion,
"com.typesafe" % "config" % "1.4.3",
"org.slf4j" % "slf4j-api" % "2.0.16"
)
)
val s3 = project
.settings(sharedSettings)
.dependsOn(core)
.settings(
name := "simple-configuration-s3",
libraryDependencies ++= Seq("software.amazon.awssdk" % "s3" % awsSdkVersion)
)
val ssm = project
.settings(sharedSettings)
.dependsOn(core)
.settings(
name := "simple-configuration-ssm",
libraryDependencies ++= Seq(
"software.amazon.awssdk" % "ssm" % awsSdkVersion
)
)
lazy val root = project
.in(file("."))
.aggregate(core, s3, ssm)
.settings(
publish / skip := true,
releaseCrossBuild := true,
releaseVersion := ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease().value,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion
)
)