-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
158 lines (147 loc) · 4.24 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
import Dependencies.*
import sbtrelease.ReleaseStateTransformations.*
lazy val root = (project in file("."))
.settings(
name := "da-aws-clients",
publish / skip := true
)
.settings(commonSettings)
.aggregate(sqs, sns, s3, dynamoDb, eventBridge, sfn, secretsManager, ssm)
lazy val commonSettings = Seq(
libraryDependencies ++= Seq(
catsCore,
catsEffect,
circe,
circeGeneric,
mockito % Test,
scalaTest % Test
),
scalaVersion := "3.6.3",
version := version.value,
organization := "uk.gov.nationalarchives",
scmInfo := Some(
ScmInfo(
url("https://github.com/nationalarchives/da-aws-clients"),
"[email protected]:nationalarchives/da-aws-client"
)
),
developers := List(
Developer(
id = "tna-da-bot",
name = "TNA Digital Archiving",
email = "[email protected]",
url = url("https://github.com/nationalarchives/da-aws-clients")
)
),
scalacOptions ++= Seq("-Wunused:imports", "-Werror", "-language:implicitConversions"),
licenses := List("MIT" -> new URL("https://choosealicense.com/licenses/mit/")),
homepage := Some(url("https://github.com/nationalarchives/da-aws-clients")),
useGpgPinentry := true,
publishTo := sonatypePublishToBundle.value,
publishMavenStyle := true,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
)
lazy val dynamoDb = (project in file("dynamodb"))
.settings(commonSettings)
.settings(
name := "da-dynamodb-client",
description := "A project containing useful methods for interacting with DynamoDb",
libraryDependencies ++= Seq(
dynamoDB,
scanamo
)
)
lazy val eventBridge = (project in file("eventbridge"))
.settings(commonSettings)
.settings(
name := "da-eventbridge-client",
description := "A project containing useful methods for interacting with EventBridge",
libraryDependencies ++= Seq(
eventBridgeSdk
)
)
lazy val ssm = (project in file("ssm"))
.settings(commonSettings)
.settings(
name := "da-ssm-client",
description := "A project containing useful methods for interacting with SSM",
libraryDependencies ++= Seq(
ssmSdk,
circeParser
)
)
lazy val s3 = (project in file("s3"))
.settings(commonSettings)
.settings(
name := "da-s3-client",
description := "A project containing useful methods for interacting with S3",
libraryDependencies ++= Seq(
s3Sdk,
stsSdk,
transferManager,
awsCrt,
reactorTest % Test
)
)
lazy val sqs = (project in file("sqs"))
.settings(commonSettings)
.settings(
name := "da-sqs-client",
description := "A project containing useful methods for interacting with SQS",
libraryDependencies ++= Seq(
sqsSdk,
circeParser
)
)
lazy val sns = (project in file("sns"))
.settings(commonSettings)
.settings(
name := "da-sns-client",
description := "A project containing useful methods for interacting with SNS",
libraryDependencies ++= Seq(
snsSdk
)
)
lazy val sfn = (project in file("sfn"))
.settings(commonSettings)
.settings(
name := "da-sfn-client",
description := "A project containing useful methods for interacting with step functions",
libraryDependencies ++= Seq(
sfnSdk
)
)
lazy val secretsManager = (project in file("secretsmanager"))
.settings(commonSettings)
.settings(
name := "da-secretsmanager-client",
description := "A project containing useful methods for interacting with secrets manager",
libraryDependencies ++= Seq(
secretsManagerSdk,
circeParser
)
)
lazy val docs = (project in file("site-docs"))
.settings(
name := "da-aws-docs",
description := "Markdown files which are published as GitHub pages documentation",
publish / skip := true
)
.enablePlugins(ParadoxSitePlugin, SitePreviewPlugin)
.settings(
paradoxProperties += ("version" -> (ThisBuild / version).value.split("-").head),
paradoxTheme := Some(builtinParadoxTheme("generic"))
)