-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
65 lines (55 loc) · 2.04 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
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'cobertura'
group = 'org.springframework.curator'
version = '1.0.0-SNAPSHOT'
description = """spring-curator"""
sourceCompatibility = 1.7
targetCompatibility = 1.7
ext {
curatorVersion = '2.6.0'
groovyVersion= '2.2.1'
spockVersion = '0.7-groovy-2.0'
springVersion = '4.0.2.RELEASE'
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "net.saliman:gradle-cobertura-plugin:2.2.4"
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.apache.curator', name: 'curator-client', version:curatorVersion
compile group: 'org.apache.curator', name: 'curator-framework', version:curatorVersion
compile group: 'org.springframework', name: 'spring-beans', version:springVersion
compile group: 'org.springframework', name: 'spring-core', version:springVersion
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.6'
testCompile group: 'cglib', name: 'cglib', version:'2.2.2'
testCompile group: 'junit', name: 'junit-dep', version:'4.11'
testCompile group: 'org.spockframework', name: 'spock-core', version:spockVersion
testCompile group: 'org.spockframework', name: 'spock-spring', version:spockVersion
testCompile group: 'org.objenesis', name: 'objenesis', version:'1.2'
testCompile group: 'org.codehaus.groovy', name: 'groovy-all', version:groovyVersion
testCompile group: 'org.apache.curator', name: 'curator-test', version:curatorVersion
testCompile group: 'org.springframework', name: 'spring-context', version:springVersion
testCompile group: 'org.springframework', name: 'spring-test', version:springVersion
}
test {
filter {
includeTestsMatching "*Test"
includeTestsMatching "*Spec"
}
}
cobertura {
coverageFormats = ['html', 'xml']
coverageIgnoreTrivial = true
coverageIgnores = ['org.slf4j.Logger.*']
coverageReportDir = new File("$buildDir/reports/cobertura")
}
test.finalizedBy(project.tasks.cobertura)