-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
33 lines (29 loc) · 1.09 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
import Dependencies._
val log4j2Version = "2.11.0"
val jacksonVersion = "2.9.5"
lazy val root = (project in file(".")).
settings(
inThisBuild(List(
organization := "com.example",
scalaVersion := "2.12.6",
version := "0.1.0-SNAPSHOT"
)),
name := "log4j2-sbt-assembly",
libraryDependencies ++= Seq(
// Logging via log4j2:
"org.apache.logging.log4j" %% "log4j-api-scala" % "11.0",
"org.apache.logging.log4j" % "log4j-api" % log4j2Version,
"org.apache.logging.log4j" % "log4j-core" % log4j2Version % Runtime,
// Structured logging, in JSON via log4j2:
"com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion % Runtime,
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion % Runtime,
"com.fasterxml.jackson.core" % "jackson-annotations" % jacksonVersion % Runtime,
// Testing:
scalaTest % Test
)
)
mainClass in assembly := Some("example.Hello")
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case _ => MergeStrategy.first
}