-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
99 lines (87 loc) · 2.56 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath files(mkdir('client/build/classes/java/main'))
classpath files(mkdir('client/build/resources/main'))
classpath files(mkdir('service/build/classes/java/main'))
classpath files(mkdir('service/build/resources/main'))
classpath 'org.robotframework:swinglibrary:1.9.8'
classpath 'org.xerial:sqlite-jdbc:3.23.1'
}
}
plugins {
id 'org.roboscratch.robot' version '0.1.2' apply false
}
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.roboscratch.robot'
repositories {
mavenCentral()
}
project.ext {
javaVersion = '1.8'
junitVersion = '4.12'
}
compileJava {
targetCompatibility = javaVersion
sourceCompatibility = javaVersion
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.18'
compile 'org.glassfish:javax.json:1.1.2'
compile 'org.xerial:sqlite-jdbc:3.23.1'
testCompile 'junit:junit:' + junitVersion
testCompile "org.mockito:mockito-core:2.21.0"
testCompile 'org.hamcrest:hamcrest-all:1.3'
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs += ['-proc:none', '-Xlint:unchecked', '-Xlint:deprecation']
}
}
task uberjar(type: Jar) {
manifest.from jar.manifest
classifier = 'all'
from {
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}
test {
jacoco {
append = false
}
}
jacocoTestReport {
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: [
'**/edu/wofford/wordoff/*Main*',
'**/keywords/**'
])
})
}
}
javadoc {
options.with {
links 'https://docs.oracle.com/javase/8/docs/api/'
}
exclude 'edu/wofford/wordoff/*Main*'
exclude 'keywords/**'
}
runrobot.data_sources = 'src/acceptance'
runrobot.outputdir = 'build/reports/robot'
runrobot.debugfile = 'debug.log'
runrobot.dependsOn build
}