forked from snowplow-incubator/snowplow-bigquery-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
105 lines (92 loc) · 2.85 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
lazy val snowplowBigqueryLoader = project.in(file("."))
.settings(BuildSettings.commonSettings)
lazy val common = project.in(file("common"))
.settings(Seq(
name := "snowplow-bigquery-common",
description := "Snowplow BigQuery Loader Common Utils"
))
.settings(
BuildSettings.commonSettings,
libraryDependencies ++= Seq(
Dependencies.decline,
Dependencies.cats,
Dependencies.json4sExt,
Dependencies.analyticsSdk,
Dependencies.schemaDdl,
Dependencies.igluClient,
Dependencies.igluCoreCirce,
Dependencies.circe,
Dependencies.circeJavaTime,
Dependencies.circeParser,
Dependencies.bigQuery,
Dependencies.specs2,
Dependencies.scalaCheck
)
)
lazy val loader = project.in(file("loader"))
.settings(Seq(
name := "snowplow-bigquery-loader",
description := "Snowplow BigQuery Loader Dataflow Job",
buildInfoPackage := "com.snowplowanalytics.snowplow.storage.bigquery.loader.generated"
))
.enablePlugins(BuildInfoPlugin)
.settings(BuildSettings.dockerSettings)
.settings(
BuildSettings.commonSettings,
BuildSettings.macroSettings,
libraryDependencies ++= Seq(
Dependencies.scioCore,
Dependencies.slf4j,
Dependencies.directRunner,
Dependencies.dataflowRunner,
Dependencies.specs2,
Dependencies.scioTest,
Dependencies.scalaCheck
)
)
.enablePlugins(JavaAppPackaging)
.dependsOn(common)
lazy val mutator = project.in(file("mutator"))
.settings(Seq(
name := "snowplow-bigquery-mutator",
description := "Snowplow BigQuery Table Mutator",
mainClass := Some("com.snowplowanalytics.snowplow.storage.bigquery.mutator.Main"),
buildInfoPackage := "com.snowplowanalytics.snowplow.storage.bigquery.mutator.generated"
))
.settings(BuildSettings.dockerSettings)
.settings(
BuildSettings.commonSettings,
libraryDependencies ++= Seq(
Dependencies.pubsub,
Dependencies.bigQuery,
Dependencies.fs2,
Dependencies.catsEffect,
Dependencies.specs2,
Dependencies.scalaCheck
)
)
.enablePlugins(BuildInfoPlugin)
.enablePlugins(JavaAppPackaging)
.dependsOn(common)
lazy val forwarder = project.in(file("forwarder"))
.settings(Seq(
name := "snowplow-bigquery-forwarder",
description := "Snowplow BigQuery Loader Dataflow Job",
buildInfoPackage := "com.snowplowanalytics.snowplow.storage.bigquery.forwarder.generated"
))
.settings(BuildSettings.dockerSettings)
.settings(
BuildSettings.commonSettings,
BuildSettings.macroSettings,
libraryDependencies ++= Seq(
Dependencies.scioCore,
Dependencies.slf4j,
Dependencies.directRunner,
Dependencies.dataflowRunner,
Dependencies.specs2,
Dependencies.scalaCheck
)
)
.enablePlugins(JavaAppPackaging)
.enablePlugins(BuildInfoPlugin)
.dependsOn(common)