forked from flapdoodle-oss/de.flapdoodle.embed.mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (43 loc) · 1.51 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
group = 'de.flapdoodle.embedmongo'
version = '1.46.5-SNAPSHOT'
project.ext.gradleVersion = "1.12"
apply plugin: 'java'
apply plugin: 'eclipse'
repositories { mavenCentral() }
eclipse {
jdt {
//if you want to alter the java versions (by default they are configured with gradle java plugin settings):
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
}
classpath {
//customizing the classes output directory:
defaultOutputDir = file('build-eclipse')
}
}
dependencies {
compile 'commons-io:commons-io:2.1'
compile 'de.flapdoodle.embed:de.flapdoodle.embed.process:1.40.1'
compile 'org.mongodb:mongo-java-driver:2.11.3'
testCompile 'junit:junit:4.11'
testCompile 'org.mongodb:mongo-java-driver:2.6.3'
testCompile 'org.mockito:mockito-core:1.9.0'
testCompile 'org.mortbay.jetty:jetty:6.1.25'
testCompile 'com.google.guava:guava:14.0.1'
}
task wrapper(type: Wrapper) {
gradleVersion = project.ext.gradleVersion
}
// we reset the last modified date of all test result files
// for incremental builds which don't run the tests when no
// chage has been made. otherwise jenkins will throw an exception then caused by
// old test result files
task jenkinsTest {
inputs.files test.outputs.files
doLast {
def timestamp = System.currentTimeMillis()
if (test.testResultsDir.exists())
test.testResultsDir.eachFile { it.lastModified = timestamp }
}
}
build.dependsOn(jenkinsTest)