-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.sbt
63 lines (58 loc) · 2.27 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
val slickVersion = "3.4.1"
val jacksonVersion = "2.18.0"
val scalaTestArtifact = "org.scalatest" %% "scalatest" % "3.2.+" % Test
val kineticpulse = "com.salesforce.mce" %% "kineticpulse-metric" % "0.3.0"
lazy val commonSettings = Seq(
scalacOptions ++= Seq("-deprecation", "-feature", "-Xlint"), // , "-Xfatal-warnings"),
scalaVersion := "2.13.12",
libraryDependencies += scalaTestArtifact,
fork := true,
organization := "com.salesforce.mce",
assembly / test := {}, // skip test during assembly
headerLicense := Some(HeaderLicense.Custom(
"""|Copyright (c) 2021, salesforce.com, inc.
|All rights reserved.
|SPDX-License-Identifier: BSD-3-Clause
|For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|""".stripMargin
))
)
lazy val root = (project in file(".")).
settings(commonSettings: _*).
settings(
name := "acdc"
).
aggregate(core, ws)
lazy val core = (project in file("acdc-core")).
settings(commonSettings: _*).
settings(
name := "acdc-core",
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % slickVersion,
"com.typesafe.slick" %% "slick-hikaricp" % slickVersion,
"org.postgresql" % "postgresql" % "42.7.2"
)
)
lazy val ws = (project in file("acdc-ws")).
enablePlugins(PlayScala, BuildInfoPlugin).
settings(commonSettings: _*).
settings(
name := "acdc-ws",
buildInfoKeys := Seq[BuildInfoKey](name, version),
buildInfoPackage := "com.salesforce.mce.acdc.ws",
libraryDependencies ++= Seq(
guice,
kineticpulse
),
dependencyOverrides ++= Seq(
"com.google.guava" % "guava" % "32.1.3-jre",
// the transitive jackson dependencies from play framework on has security vulnerabilities
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion,
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % jacksonVersion,
"com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8" % jacksonVersion,
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % jacksonVersion,
"com.fasterxml.jackson.module" % "jackson-module-parameter-names" % jacksonVersion
)
).
dependsOn(core)