-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.sbt
executable file
·226 lines (205 loc) · 10.8 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
/*
* Copyright (c) 2012-present Snowplow Analytics Ltd.
* All rights reserved.
*
* This software is made available by Snowplow Analytics, Ltd.,
* under the terms of the Snowplow Limited Use License Agreement, Version 1.0
* located at https://docs.snowplow.io/limited-use-license-1.0
* BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION
* OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT.
*/
/**
* Inspired by the same issue in the Iglu Server, see commit
* https://github.com/snowplow/iglu-server/pull/128/commits/d4a0940c12181dd40bc5cdc2249f2c84c5296353
*
* Currently we have some libs that depend on circe 0.14.x and some that depend on 0.13.x. These
* reported binary incompatibilities can only be removed once we have bumped cats-effect to version
* 3. For now, we ignore the reported binary incompatibilities because testing shows it is safe.
*/
ThisBuild / libraryDependencySchemes ++= Seq(
"io.circe" %% "circe-core" % "always",
"io.circe" %% "circe-generic" % "always",
"io.circe" %% "circe-parser" % "always",
"io.circe" %% "circe-jawn" % "always",
"com.github.luben" % "zstd-jni" % "semver-spec"
)
lazy val root = project
.in(file("."))
.aggregate(
aws,
gcp,
azure,
common,
commonTransformerStream,
loader,
databricksLoader,
redshiftLoader,
snowflakeLoader,
transformerBatch,
transformerKinesis,
transformerPubsub,
transformerKafka
)
lazy val common: Project = project
.in(file("modules/common"))
.settings(BuildSettings.commonBuildSettings)
.settings(libraryDependencies ++= Dependencies.commonDependencies)
.enablePlugins(BuildInfoPlugin)
lazy val aws: Project = project
.in(file("modules/aws"))
.settings(BuildSettings.awsBuildSettings)
.settings(libraryDependencies ++= Dependencies.awsDependencies)
.dependsOn(common % "compile->compile;test->test")
.enablePlugins(BuildInfoPlugin)
lazy val gcp: Project = project
.in(file("modules/gcp"))
.settings(BuildSettings.gcpBuildSettings)
.settings(libraryDependencies ++= Dependencies.gcpDependencies)
.dependsOn(common % "compile->compile;test->test")
.enablePlugins(BuildInfoPlugin)
lazy val azure: Project = project
.in(file("modules/azure"))
.settings(BuildSettings.azureBuildSettings)
.settings(libraryDependencies ++= Dependencies.azureDependencies)
.dependsOn(common % "compile->compile;test->test")
.enablePlugins(BuildInfoPlugin)
lazy val commonTransformerStream = project
.in(file("modules/common-transformer-stream"))
.settings(BuildSettings.commonStreamTransformerBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.commonStreamTransformerDependencies)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.dependsOn(common % "compile->compile;test->test")
.enablePlugins(BuildInfoPlugin)
lazy val loader = project
.in(file("modules/loader"))
.settings(BuildSettings.loaderBuildSettings)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.loaderDependencies)
.dependsOn(
aws % "compile->compile;test->test;runtime->runtime",
gcp % "compile->compile;test->test",
azure % "compile->compile;test->test"
)
lazy val redshiftLoader = project
.in(file("modules/redshift-loader"))
.settings(BuildSettings.redshiftBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.redshiftDependencies)
.dependsOn(loader % "compile->compile;test->test;runtime->runtime")
.enablePlugins(JavaAppPackaging, SnowplowDockerPlugin, BuildInfoPlugin)
lazy val redshiftLoaderDistroless = project
.in(file("modules/distroless/redshift-loader"))
.settings(sourceDirectory := (redshiftLoader / sourceDirectory).value)
.settings(BuildSettings.redshiftBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.redshiftDependencies)
.dependsOn(loader % "compile->compile;test->test;runtime->runtime")
.enablePlugins(JavaAppPackaging, SnowplowDistrolessDockerPlugin, BuildInfoPlugin)
lazy val snowflakeLoader = project
.in(file("modules/snowflake-loader"))
.settings(BuildSettings.snowflakeBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.snowflakeDependencies)
.dependsOn(common % "compile->compile;test->test", loader % "compile->compile;test->test;runtime->runtime")
.enablePlugins(JavaAppPackaging, SnowplowDockerPlugin, BuildInfoPlugin)
lazy val snowflakeLoaderDistroless = project
.in(file("modules/distroless/snowflake-loader"))
.settings(sourceDirectory := (snowflakeLoader / sourceDirectory).value)
.settings(BuildSettings.snowflakeBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.snowflakeDependencies)
.dependsOn(loader % "compile->compile;test->test;runtime->runtime")
.enablePlugins(JavaAppPackaging, SnowplowDistrolessDockerPlugin, BuildInfoPlugin)
lazy val databricksLoader = project
.in(file("modules/databricks-loader"))
.settings(BuildSettings.databricksBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.dependsOn(loader % "compile->compile;test->test;runtime->runtime")
.enablePlugins(JavaAppPackaging, SnowplowDockerPlugin, BuildInfoPlugin)
lazy val databricksLoaderDistroless = project
.in(file("modules/distroless/databricks-loader"))
.settings(sourceDirectory := (databricksLoader / sourceDirectory).value)
.settings(BuildSettings.databricksBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.dependsOn(loader % "compile->compile;test->test;runtime->runtime")
.enablePlugins(JavaAppPackaging, SnowplowDistrolessDockerPlugin, BuildInfoPlugin)
lazy val transformerBatch = project
.in(file("modules/transformer-batch"))
.settings(BuildSettings.transformerBatchBuildSettings)
.settings(libraryDependencies ++= Dependencies.batchTransformerDependencies)
.dependsOn(common % "compile->compile;test->test;runtime->runtime")
.enablePlugins(BuildInfoPlugin)
lazy val transformerKinesis = project
.in(file("modules/transformer-kinesis"))
.settings(BuildSettings.transformerKinesisBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.transformerKinesisDependencies)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.dependsOn(commonTransformerStream % "compile->compile;test->test;runtime->runtime", aws % "compile->compile;test->test;runtime->runtime")
.enablePlugins(JavaAppPackaging, SnowplowDockerPlugin, BuildInfoPlugin)
lazy val transformerKinesisDistroless = project
.in(file("modules/distroless/transformer-kinesis"))
.settings(sourceDirectory := (transformerKinesis / sourceDirectory).value)
.settings(BuildSettings.transformerKinesisBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.transformerKinesisDependencies)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.dependsOn(commonTransformerStream % "compile->compile;test->test;runtime->runtime", aws % "compile->compile;test->test;runtime->runtime")
.enablePlugins(JavaAppPackaging, SnowplowDistrolessDockerPlugin, BuildInfoPlugin)
lazy val transformerPubsub = project
.in(file("modules/transformer-pubsub"))
.settings(BuildSettings.transformerPubsubBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.transformerPubsubDependencies)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.dependsOn(commonTransformerStream % "compile->compile;test->test;runtime->runtime", gcp % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, SnowplowDockerPlugin, BuildInfoPlugin)
lazy val transformerPubsubDistroless = project
.in(file("modules/distroless/transformer-pubsub"))
.settings(sourceDirectory := (transformerPubsub / sourceDirectory).value)
.settings(BuildSettings.transformerPubsubBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.transformerPubsubDependencies)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.dependsOn(commonTransformerStream % "compile->compile;test->test;runtime->runtime", gcp % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, SnowplowDistrolessDockerPlugin, BuildInfoPlugin)
lazy val transformerKafka = project
.in(file("modules/transformer-kafka"))
.settings(BuildSettings.transformerKafkaBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.transformerKafkaDependencies)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.dependsOn(
commonTransformerStream % "compile->compile;test->test;runtime->runtime",
azure % "compile->compile;test->test;runtime->runtime"
)
.enablePlugins(JavaAppPackaging, SnowplowDockerPlugin, BuildInfoPlugin)
lazy val transformerKafkaDistroless = project
.in(file("modules/distroless/transformer-kafka"))
.settings(sourceDirectory := (transformerKafka / sourceDirectory).value)
.settings(BuildSettings.transformerKafkaBuildSettings)
.settings(BuildSettings.additionalDockerSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.transformerKafkaDependencies)
.settings(excludeDependencies ++= Dependencies.commonExclusions)
.dependsOn(commonTransformerStream % "compile->compile;test->test;runtime->runtime", azure % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, SnowplowDistrolessDockerPlugin, BuildInfoPlugin)