forked from HariSekhon/Nagios-Plugin-Kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
assembly.sbt
28 lines (26 loc) · 1.15 KB
/
assembly.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
//
// Author: Hari Sekhon
// Date: 2015-05-25 23:27:15 +0100 (Mon, 25 May 2015)
//
// vim:ts=4:sts=4:sw=4:et
//
// https://github.com/harisekhon/nagios-plugin-kafka
//
// License: see accompanying Hari Sekhon LICENSE file
//
// If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help improve or steer this or other code I publish
//
// https://www.linkedin.com/in/harisekhon
//
// https://github.com/sbt/sbt-assembly
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case PathList("META-INF", "maven","org.slf4j","slf4j-api", p) if p.startsWith("pom") => MergeStrategy.discard
case PathList("META-INF", "maven","commons-lang","commons-lang", p) if p.startsWith("pom") => MergeStrategy.discard
case PathList("com", "google", "common", "base", p) => MergeStrategy.first
case PathList("org", "apache", "commons", p @ _*) => MergeStrategy.first
case PathList("jline", p @ _*) => MergeStrategy.first
case PathList("log4j.properties") => MergeStrategy.first
case x => old(x)
}
}