-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (48 loc) · 1.22 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
group 'com.chimpler'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'findbugs'
apply plugin: 'pmd'
apply plugin: 'cobertura'
sourceCompatibility = 1.7
targetCompatibility = 1.7
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.2.4'
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'joda-time', name: 'joda-time', version: '2.9.2'
compile group: 'net.sf.jopt-simple', name: 'jopt-simple', version: '5.0-beta-1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
test {
testLogging {
// Show that tests are run in the command-line output
events 'passed'
}
}
findbugs {
ignoreFailures = true
sourceSets = [sourceSets.main]
reportsDir = file("$project.buildDir/reports/findbugs")
effort = "max"
}
pmd {
sourceSets = [sourceSets.main]
ignoreFailures = true
reportsDir = file("$project.buildDir/reports/pmd")
}
cobertura {
coverageFormats = ['html', 'xml']
coverageIgnoreTrivial = true
coverageIgnores = ['org.slf4j.Logger.*']
coverageReportDir = new File("$buildDir/reports/cobertura")
}
test.finalizedBy(project.tasks.cobertura)