-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
69 lines (55 loc) · 2.15 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
import java.text.SimpleDateFormat
description = 'Cedexis Web Services'
subprojects {
apply plugin: 'groovy'
apply plugin: 'codenarc'
sourceCompatibility = 1.6
group = 'com.cedexis'
version = 'v' + new SimpleDateFormat('yyyy.MM.dd').format(new Date()) + "-SNAPSHOT"
repositories {
mavenCentral()
}
configurations {
// exclude commons-logging, log4j, and j.u.logging - we use slf4j and logback
// http://spring-java-ee.posterous.com/gradle-build-for-spring-framework-and-slf4j-w
all*.exclude group: 'commons-logging'
all*.exclude group: 'log4j'
// exclude aspectj - we do not use it
all*.exclude group: 'org.aspectj'
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.2',
'org.codehaus.groovy:groovy-all:2.1.1'
runtime 'ch.qos.logback:logback-classic:1.0.9', // we use logback
'org.slf4j:jcl-over-slf4j:1.7.2', // and the commons-logging bridge
'org.slf4j:log4j-over-slf4j:1.7.2' // and the log4j bridge
testCompile 'junit:junit:4.8.2',
'org.mockito:mockito-all:1.8.5'
}
jar {
manifest {
attributes 'Implementation-Title': project.name, 'Implementation-Version': version
}
}
// ignore test failures (useful in a CI environment)?
// ignore failures like so:
// gradlew -PignoreTestFailures=true test
if (project.hasProperty('ignoreTestFailures') && ignoreTestFailures == 'true') {
afterEvaluate { project ->
if (project.tasks.test) {
// Cause the build to continue even if there are test failures.
// Use with caution - the build will succeed even if there are test failures.
// Only by checking the test reports will it be obvious the build failed
project.tasks.test.ignoreFailures = true
}
}
}
codenarc {
configFile = file("$rootDir/config/codenarc/codenarc.groovy")
ignoreFailures = true
}
}
task wrapper(type: Wrapper) {
description = 'Regnerates the Gradle wrapper script'
gradleVersion = '1.5'
}