-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (38 loc) · 1.09 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
apply plugin: 'groovy'
apply plugin: 'antlr'
apply plugin: 'application'
apply from: 'bintray-publish.gradle'
// use invokedynamic for groovy because it's so cool
tasks.withType(GroovyCompile) {
groovyOptions.optimizationOptions.indy = true
}
// configure application
mainClassName = 'com.github.oreissig.hrm.launcher.Main'
if (project.hasProperty('args'))
run.args = args.split(' ') as List
run.standardInput = System.in
// configure code coverage
apply plugin: 'jacoco'
jacoco.toolVersion = '0.7.8'
tasks.withType(Test) { it.finalizedBy 'jacocoTestReport' }
jacocoTestReport {
reports {
xml.enabled true
}
}
repositories {
jcenter()
}
dependencies {
antlr 'org.antlr:antlr4:4.6'
compile 'org.antlr:antlr4-runtime:4.6'
compile 'org.codehaus.groovy:groovy-all:2.4.7:indy'
runtime 'commons-cli:commons-cli:1.3.1'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4-rc-2'
// cglib and objenesis needed for advanced mocking
testRuntime 'cglib:cglib:3.2.4'
testRuntime 'org.objenesis:objenesis:2.4'
}
tasks.distTar {
compression = 'GZIP'
}