forked from rtimush/sbt-updates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproguard.sbt
28 lines (21 loc) · 971 Bytes
/
proguard.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
proguardSettings
ProguardKeys.options in Proguard ++= Seq(
"-dontwarn",
"-dontnote",
"-dontoptimize",
"-keep class com.timushev.sbt.updates.**",
"-keepclassmembers class ** { *; }",
"-repackageclasses 'com.timushev.sbt.updates.libs'"
)
ProguardKeys.libraries in Proguard <++= (dependencyClasspath in Compile, dependencyClasspath in Embedded) map {
(ccp, rcp) => ccp.files filterNot rcp.files.toSet
}
ProguardKeys.inputs in Proguard <++= (dependencyClasspath in Embedded, scalaInstance) map {
(dcp, si) => dcp.files filterNot (_ == si.libraryJar)
}
SbtUpdatesBuild.publishMinJar <<= (ProguardKeys.proguard in Proguard) map (_.head)
packagedArtifact in (Compile, packageBin) <<= (packagedArtifact in (Compile, packageBin), SbtUpdatesBuild.publishMinJar) map {
case ((art, _), jar) => (art, jar)
}
dependencyClasspath in Compile <++= dependencyClasspath in Embedded
dependencyClasspath in Test <++= dependencyClasspath in Embedded