forked from robokaso/Groovy-Spring-Batch-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (55 loc) · 2.33 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
apply plugin: 'jacoco'
apply plugin: 'groovy'
apply plugin:'application'
apply plugin: 'codenarc'
repositories {
mavenCentral()
maven { url 'http://repo.spring.io/milestone' }
}
dependencies {
final SPRING_VERSION = '4.0.0.RELEASE'
final BATCH_VERSION = '3.0.0.M2'
final SPOCK_VERSION = '0.7-groovy-2.0'
final LOGBACK_VERSION = '1.0.13'
final SLF4J_VERSION = '1.7.5'
// use the indy jars (java 7 only!)
compile 'org.codehaus.groovy:groovy:2.2.1:indy'
compile group: 'org.springframework.batch', name: 'spring-batch-core', version: BATCH_VERSION
compile group: 'org.springframework', name: 'spring-context', version: SPRING_VERSION
compile group: 'org.springframework', name: 'spring-tx', version: SPRING_VERSION
compile group: 'org.springframework', name: 'spring-jdbc', version: SPRING_VERSION
// compile group: 'org.springframework', name: 'spring-orm', version: SPRING_VERSION
// compile group: 'org.springframework', name: 'spring-oxm', version: SPRING_VERSION
compile group: 'com.jolbox', name: 'bonecp-spring', version: '0.8.0.RELEASE'
compile group: 'com.h2database', name: 'h2', version: '1.3.174'
// logging spring cleaning - use slf4j instead of commons-logging
compile group: 'ch.qos.logback', name: 'logback-classic', version: LOGBACK_VERSION
compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: SLF4J_VERSION
testCompile group: 'org.spockframework', name: 'spock-core', version: SPOCK_VERSION
testCompile group: 'org.spockframework', name: 'spock-spring', version: SPOCK_VERSION
testCompile group: 'org.springframework.batch', name: 'spring-batch-test', version: BATCH_VERSION
testCompile group: 'org.springframework', name: 'spring-test', version: SPRING_VERSION
}
mainClassName = 'org.springframework.batch.core.launch.support.CommandLineJobRunner'
run {
args 'example.ExampleConfiguration', 'job1'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}
codenarc {
configFile = new File("${project.projectDir.absolutePath}/gradle/codenarc/ruleset.groovy")
// consumed by Jenkins Violations plugin
reportFormat = 'xml'
// don't let codenarc violations fail the build
tasks.withType(CodeNarc).all { codeNarcTask ->
codeNarcTask.ignoreFailures = true
}
}
jacocoTestReport{
reports {
xml.enabled true
csv.enabled false
//html.destination "${buildDir}/jacocoHtml"
}
}