forked from jku-ssw/java-bytecode-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (52 loc) · 1.69 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
group 'at.jku.ssw'
version '1.0.0'
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 8
targetCompatibility = 8
ext {
javassistVersion = '3.23.1-GA'
junitVersion = '5.3.1'
commonsCliVersion = '1.4'
hamcrestVersion = '1.3'
log4jVersion = '2.11.1'
}
wrapper {
gradleVersion = '4.10'
}
mainClassName = 'at.jku.ssw.java.bytecode.generator.JBGenerator'
jar {
manifest {
attributes 'Implementation-Title': 'Java Bytecode Generator',
'Implementation-Version': version,
'Main-Class': mainClassName
}
baseName = 'jbgenerator'
archiveName = "${jar.baseName}.${jar.extension}"
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
}
run {
classpath = sourceSets.main.runtimeClasspath
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.javassist', name: 'javassist', version: javassistVersion
compile group: 'commons-cli', name: 'commons-cli', version: commonsCliVersion
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4jVersion
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4jVersion
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junitVersion
testCompile 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
}