-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
84 lines (79 loc) · 3.23 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
import sbt.Keys.crossScalaVersions
/** Copyright (c) 2014-2022 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 commonSettings = BuildSettings.commonSettings ++
BuildSettings.sbtSiteSettings ++
BuildSettings.basicSettigns ++
BuildSettings.publishSettings ++
BuildSettings.scoverage ++
BuildSettings.dynVerSettings ++
BuildSettings.assemblySettings
lazy val core = project
.settings(
moduleName := "snowplow-event-generator-core",
description := "Generate random enriched events",
crossScalaVersions := Seq("2.12.14", "2.13.6")
)
.enablePlugins(SiteScaladocPlugin, DockerPlugin, JavaAppPackaging)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Libraries.collectionCompat,
Dependencies.Libraries.analyticsSdk,
Dependencies.Libraries.scalaCheck,
Dependencies.Libraries.scalaCheckCats,
Dependencies.Libraries.badRows,
Dependencies.Libraries.httpClient,
Dependencies.Libraries.snowplowRawEvent,
Dependencies.Libraries.collectorPayload,
Dependencies.Libraries.slf4j,
Dependencies.Libraries.thrift,
// Scala (test only)
Dependencies.Libraries.specs2Scalacheck,
Dependencies.Libraries.specs2,
Dependencies.Libraries.specs2Cats
)
)
lazy val sinks = project
.settings(commonSettings)
.enablePlugins(SiteScaladocPlugin, DockerPlugin, JavaAppPackaging)
.settings(
moduleName := "snowplow-event-generator-sinks"
// beware of runtime circe crushes for 2.12 version
)
.settings(BuildSettings.dockerSettings)
.settings(BuildSettings.executableSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Libraries.decline,
Dependencies.Libraries.circeCore,
Dependencies.Libraries.circeConfig,
Dependencies.Libraries.circeExtras,
Dependencies.Libraries.circeGeneric,
Dependencies.Libraries.circeParser,
Dependencies.Libraries.fs2,
Dependencies.Libraries.fs2file,
Dependencies.Libraries.blobstore,
Dependencies.Libraries.specs2,
Dependencies.Libraries.kcl,
Dependencies.Libraries.fs2Pubsub,
Dependencies.Libraries.fs2Kafka,
Dependencies.Libraries.awsRegions,
"org.http4s" %% "http4s-ember-client" % "0.23.15",
"org.http4s" %% "http4s-circe" % "0.23.15"
// TODO move this
),
//libraryDependencies += "org.typelevel" %% "cats-effect" % "3.4.6",
// libraryDependencies += "org.http4s" %% "http4s-ember-client" % "0.23.15",
// libraryDependencies += "org.http4s" %% "http4s-circe" % "0.23.15"
)
.dependsOn(core)
lazy val eventGenerator = project.aggregate(core, sinks)