-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (44 loc) · 1.3 KB
/
build.gradle
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
}
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
apply plugin: 'application'
apply plugin: 'eclipse'
mainClassName = 'de.uulm.vs.dcn.benchmarking.Benchmarking'
apply plugin: 'com.github.johnrengelman.shadow'
repositories {
jcenter()
}
dependencies {
compile 'com.codahale:shamir:0.7.0'
compile 'commons-cli:commons-cli:1.3.1'
testCompile 'junit:junit:4.12'
}
// so that we can see stdout and stderr during tests
test {
dependsOn cleanTest
testLogging.showStandardStreams = true
}
jar {
manifest {
attributes 'Main-Class': 'de.uulm.vs.dcn.benchmarking.Benchmarking'
}
}
shadowJar {
// Remove license files from dependencies and maven configurations
excludes += ["META-INF/LICENSE*", "LICENSE*", "META-INF/NOTICE*", "NOTICE*", "META-INF/DEPENDENCIES", "META-INF/maven/**"]
doLast {
ant.jar(update: "true", destfile: archivePath) {
zipfileset(dir: rootDir, prefix: "META-INF") {
include(name: "NOTICE-3RD-PARTY.txt")
include(name: "LICENSE-3RD-PARTY.txt")
include(name: "LICENSE")
}
}
}
}