-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
63 lines (51 loc) · 1.18 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
56
57
58
59
60
61
62
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "VulnerabilityDetector"
jar {
baseName = 'VulnerabilityDetector'
version = '0.1.0'
manifest { attributes 'Main-Class': mainClassName }
}
sourceSets {
main {
java {
srcDir 'src/'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'lib/wala', include: '*.jar')
compile group: 'com.google.code.gson', name: 'gson', version: '2.5'
//runtime files('wala.properties')
}
compileJava {
options.compilerArgs << '-Xlint:unchecked'
}
task fatJar(type: Jar) {
baseName = project.name + '-all'
manifest { attributes 'Main-Class': mainClassName }
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
artifacts {
archives fatJar
}
run {
if (project.hasProperty("appArgs")) {
if (appArgs.contains("[")) {
args Eval.me(appArgs)
} else {
args appArgs.split()
}
}
}
processTestResources.enabled = false
compileTestJava.enabled = false
testClasses.enabled = false
test.enabled = false
task wrapper(type: Wrapper) {
gradleVersion = '2.10'
}