forked from snowplow-incubator/snowplow-bigquery-loader
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
115 lines (108 loc) · 3.39 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
/*
* Copyright (c) 2018-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.
*/
// format: off
lazy val root = project
.in(file("."))
.settings(name := "bigquery-loader")
.aggregate(common, loader, streamloader, mutator, repeater)
.settings(assembly / aggregate := false)
// format: on
lazy val common = project
.in(file("modules/common"))
.enablePlugins(BuildInfoPlugin)
.settings(BuildSettings.commonBuildSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.bigQuery,
Dependencies.cats,
Dependencies.catsEffect,
Dependencies.circe,
Dependencies.circeConfig,
Dependencies.circeJawn,
Dependencies.circeLiteral,
Dependencies.circeParser,
Dependencies.decline,
Dependencies.fs2,
Dependencies.logging,
Dependencies.slf4j,
Dependencies.analyticsSdk,
Dependencies.badrows,
Dependencies.igluClient,
Dependencies.igluCoreCirce,
Dependencies.schemaDdl,
Dependencies.specs2,
Dependencies.nettyCodec,
Dependencies.nettyCodecHttp,
Dependencies.nettyCodecHttp2,
Dependencies.googleOauth
)
)
lazy val loader = project
.in(file("modules/loader"))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(JavaAppPackaging)
.settings(BuildSettings.loaderBuildSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.dataflowRunner,
Dependencies.directRunner,
Dependencies.metrics,
Dependencies.scioCore,
Dependencies.scioBigQuery,
Dependencies.scioTest,
Dependencies.fastjson
)
)
.dependsOn(common % "compile->compile;test->test")
lazy val streamloader = project
.in(file("modules/streamloader"))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(JavaAppPackaging)
.settings(BuildSettings.streamloaderBuildSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.pubsubFs2Grpc
)
)
.dependsOn(common % "compile->compile;test->test")
lazy val mutator = project
.in(file("modules/mutator"))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(JavaAppPackaging)
.settings(BuildSettings.mutatorBuildSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.pubsub
)
)
.dependsOn(common % "compile->compile;test->test")
lazy val repeater = project
.in(file("modules/repeater"))
.enablePlugins(BuildInfoPlugin)
.enablePlugins(JavaAppPackaging)
.settings(BuildSettings.repeaterBuildSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.gcs,
Dependencies.httpClient,
Dependencies.pubsub,
Dependencies.pubsubFs2Grpc
)
)
.dependsOn(common % "compile->compile;test->test")
// format: off
lazy val benchmark = project
.in(file("modules/benchmark"))
.enablePlugins(JmhPlugin)
.dependsOn(loader % "test->test")
// format: on