-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
102 lines (80 loc) · 2.7 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
group = 'at.jku.ssw'
version = '1.0-SNAPSHOT'
/* PLUGINS ================================================================= */
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 11
targetCompatibility = 11
mainClassName = 'at.jku.ssw.java.bytecode.reducer.JReduce'
/* PROPERTIES ============================================================== */
ext {
asmVersion = '6.2.1'
javassistVersion = '3.24.1-GA'
junitVersion = '5.3.1'
hamcrestVersion = '1.3'
apacheLoggingVersion = '2.11.1'
apacheCommonsVersion = '1.4'
}
/* CUSTOM TASKS ============================================================ */
/**
* Generate Javadoc from the source files.
*/
javadoc {
source = sourceSets.main.allJava
}
/**
* Generate JAR file including dependencies.
*/
jar {
manifest {
attributes 'Implementation-Title': 'Java Bytecode Reducer',
'Implementation-Version': version,
'Main-Class': mainClassName,
'Multi-Release': true
}
baseName = 'jreduce'
archiveName = "${jar.baseName}.${jar.extension}"
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
/**
* Run all tests.
*/
test {
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
}
}
/**
* Run the application.
*/
run {
classpath = sourceSets.main.runtimeClasspath
}
/**
* Generate the wrapper.
*/
wrapper {
gradleVersion = '4.10'
}
/* REPOSITORIES ============================================================ */
repositories {
mavenCentral()
}
/* DEPENDENCIES ============================================================ */
dependencies {
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: apacheLoggingVersion
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: apacheLoggingVersion
compile group: 'org.apache.logging.log4j', name: 'log4j-iostreams', version: apacheLoggingVersion
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitVersion
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitVersion
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junitVersion
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: hamcrestVersion
compile group: 'org.javassist', name: 'javassist', version: javassistVersion
compile group: 'org.ow2.asm', name: 'asm', version: asmVersion
compile group: 'org.ow2.asm', name: 'asm-tree', version: asmVersion
compile group: 'org.ow2.asm', name: 'asm-commons', version: asmVersion
compile group: 'commons-cli', name: 'commons-cli', version: apacheCommonsVersion
}