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
|
apply plugin: 'java' // Plugin as major conventions
apply plugin: 'errorprone'
apply plugin: 'info'
sourceCompatibility = 1.5
// GRADLE-2087 workaround, perform after java plugin
status = project.hasProperty('preferredStatus')?project.preferredStatus:(version.contains('SNAPSHOT')?'snapshot':'release')
repositories {
// mavenLocal()
mavenCentral()
// jcenter()
}
dependencies {
compile 'com.google.code.findbugs:jsr305:2.0.2'
compile 'org.slf4j:slf4j-api:1.7.7'
testCompile 'junit:junit:4.11'
testRuntime 'org.slf4j:slf4j-simple:1.7.7'
}
tasks.withType(JavaCompile) {
options.incremental = true
}
test {
systemProperty 'org.apache.commons.logging.Log', 'org.apache.commons.logging.impl.SimpleLog'
systemProperty 'org.apache.commons.logging.simplelog.defaultlog', 'debug'
systemProperty 'org.apache.commons.logging.diagnostics.dest', 'STDERR'
systemProperty 'org.slf4j.simpleLogger.logFile', 'System.out'
systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', 'debug'
systemProperty 'jna.nosys', 'true'
testLogging {
if (System.properties['test.single']) {
// events "passed", "skipped", "failed"
events "started", "passed", "skipped", "failed"
showExceptions true
exceptionFormat "full"
showStandardStreams true
} else {
events "started", "skipped", "failed"
}
debug {
events "started", "passed", "skipped", "failed", "standard_out", "standard_error"
exceptionFormat "full"
}
}
}
// Generate wrapper, which is distributed as part of source to alleviate the need of installing gradle
wrapper {
gradleVersion = '2.2.1'
}
|