forked from snowplow/snowplow-rdb-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
executable file
·155 lines (138 loc) · 7.16 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
/*
* Copyright (c) 2012-2021 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Apache License Version 2.0 is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/
lazy val root = project.in(file("."))
.aggregate(
aws,
gcp,
common,
commonTransformerStream,
loader,
databricksLoader,
redshiftLoader,
snowflakeLoader,
transformerBatch,
transformerKinesis,
transformerPubsub,
)
lazy val common: Project = project
.in(file("modules/common"))
.settings(BuildSettings.commonBuildSettings)
.settings(libraryDependencies ++= Dependencies.commonDependencies)
.settings(excludeDependencies ++= Dependencies.exclusions)
.enablePlugins(BuildInfoPlugin)
lazy val aws: Project = project
.in(file("modules/aws"))
.settings(BuildSettings.awsBuildSettings)
.settings(libraryDependencies ++= Dependencies.awsDependencies)
.settings(excludeDependencies ++= Dependencies.exclusions)
.dependsOn(common % "compile->compile;test->test")
.enablePlugins(BuildInfoPlugin)
lazy val gcp: Project = project
.in(file("modules/gcp"))
.settings(BuildSettings.gcpBuildSettings)
.settings(libraryDependencies ++= Dependencies.gcpDependencies)
.settings(excludeDependencies ++= Dependencies.exclusions)
.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.commonStreamTransformerExclusions)
.dependsOn(common % "compile->compile;test->test")
.enablePlugins(BuildInfoPlugin)
lazy val loader = project
.in(file("modules/loader"))
.settings(BuildSettings.loaderBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.loaderDependencies)
.settings(excludeDependencies ++= Dependencies.exclusions)
.dependsOn(aws % "compile->compile;test->test", gcp % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin)
lazy val redshiftLoader = project
.in(file("modules/redshift-loader"))
.settings(BuildSettings.redshiftBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.redshiftDependencies)
.dependsOn(loader % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin)
lazy val redshiftLoaderDistroless = project
.in(file("modules/distroless/redshift-loader"))
.settings(sourceDirectory := (redshiftLoader / sourceDirectory).value)
.settings(BuildSettings.redshiftDistrolessBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.redshiftDependencies)
.dependsOn(loader % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin, LauncherJarPlugin)
lazy val snowflakeLoader = project
.in(file("modules/snowflake-loader"))
.settings(BuildSettings.snowflakeBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.snowflakeDependencies)
.dependsOn(common % "compile->compile;test->test",loader % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin)
lazy val snowflakeLoaderDistroless = project
.in(file("modules/distroless/snowflake-loader"))
.settings(sourceDirectory := (snowflakeLoader / sourceDirectory).value)
.settings(BuildSettings.snowflakeDistrolessBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.settings(libraryDependencies ++= Dependencies.snowflakeDependencies)
.dependsOn(loader % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin, LauncherJarPlugin)
lazy val databricksLoader = project
.in(file("modules/databricks-loader"))
.settings(BuildSettings.databricksBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.dependsOn(loader % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin)
lazy val databricksLoaderDistroless = project
.in(file("modules/distroless/databricks-loader"))
.settings(sourceDirectory := (databricksLoader / sourceDirectory).value)
.settings(BuildSettings.databricksDistrolessBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.dependsOn(loader % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin, LauncherJarPlugin)
lazy val transformerBatch = project
.in(file("modules/transformer-batch"))
.settings(BuildSettings.transformerBatchBuildSettings)
.settings(libraryDependencies ++= Dependencies.batchTransformerDependencies)
.settings(excludeDependencies ++= Dependencies.exclusions)
.dependsOn(common % "compile->compile;test->test")
.enablePlugins(BuildInfoPlugin)
lazy val transformerKinesis = project
.in(file("modules/transformer-kinesis"))
.settings(BuildSettings.transformerKinesisBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.dependsOn(commonTransformerStream % "compile->compile;test->test", aws % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin)
lazy val transformerKinesisDistroless = project
.in(file("modules/distroless/transformer-kinesis"))
.settings(sourceDirectory := (transformerKinesis / sourceDirectory).value)
.settings(BuildSettings.transformerKinesisDistrolessBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.dependsOn(commonTransformerStream, aws)
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin, LauncherJarPlugin)
lazy val transformerPubsub = project
.in(file("modules/transformer-pubsub"))
.settings(BuildSettings.transformerPubsubBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.dependsOn(commonTransformerStream % "compile->compile;test->test", gcp % "compile->compile;test->test")
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin)
lazy val transformerPubsubDistroless = project
.in(file("modules/distroless/transformer-pubsub"))
.settings(sourceDirectory := (transformerPubsub / sourceDirectory).value)
.settings(BuildSettings.transformerPubsubDistrolessBuildSettings)
.settings(addCompilerPlugin(Dependencies.betterMonadicFor))
.dependsOn(commonTransformerStream, gcp)
.enablePlugins(JavaAppPackaging, DockerPlugin, BuildInfoPlugin, LauncherJarPlugin)