/
build.gradle
executable file
·57 lines (44 loc) · 1.72 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
allprojects {
apply plugin: 'groovy'
group = 'se.diabol.scrolls'
version = '0.0.1-SNAPSHOT'
project.sourceCompatibility = 1.8
project.targetCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile group: 'org.codehaus.groovy', name: 'groovy-all', version:'2.4.7'
}
}
apply plugin: 'maven'
apply plugin: 'application'
description = 'An Automated Delivery Report Engine'
mainClassName = 'se.diabol.scrolls.engine.Scrolls'
dependencies {
compile project(':plugin-api')
compile group: 'org.freemarker', name: 'freemarker', version:'2.3.25-incubating'
compile group: 'commons-cli', name: 'commons-cli', version:'1.3.1'
compile group: 'com.mashape.unirest', name: 'unirest-java', version:'1.4.9'
testCompile 'org.slf4j:slf4j-api:1.7.13'
testCompile 'org.slf4j:slf4j-simple:1.7.13'
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'org.spockframework', name: 'spock-core', version:'1.0-groovy-2.4'
testCompile( 'com.athaydes:spock-reports:1.2.13' ) {
transitive = false // this avoids affecting your version of Groovy/Spock
}
testCompile group: 'com.sun.grizzly', name: 'grizzly-comet-webserver', version:'1.9.64'
testCompile 'com.github.stefanbirkner:system-rules:1.16.0'
}
task uberjar(type: Jar, dependsOn:[':compileJava',':compileGroovy']) {
from files(sourceSets.main.output.classesDir)
from files(sourceSets.main.resources)
from configurations.runtime.asFileTree.files.collect { zipTree(it) }
manifest {
attributes 'Main-Class': mainClassName
}
}
run {
/* Need to split the space-delimited value in the run.args */
args System.getProperty('run.args', '').split()
}