-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (42 loc) · 1.55 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
plugins {
id 'java'
id 'application'
}
group 'airwallex'
version '1.0-release'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
application {
mainClassName = "com.ruojunm.rpn.Main"
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'RPN Calculator By Ruojunm',
'Implementation-Version': version,
'Main-Class': 'com.ruojunm.rpn.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
// For common java command line application, e.g. help message, command line options and etc
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.1'
// logging libraries
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.11.1'
compile group: 'com.lmax', name: 'disruptor', version: '3.3.4' //for asynchronous log for log4j2
// code generation -- similar to javassist and cglib
compile group: 'net.bytebuddy', name: 'byte-buddy-dep', version: '1.9.6'
// Use TestNG framework, also requires calling test.useTestNG() below
testImplementation 'org.testng:testng:6.14.3'
}
test {
// Use TestNG for unit tests
useTestNG()
}