Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (56 loc) · 1.88 KB
/
Copy pathbuild.gradle
File metadata and controls
71 lines (56 loc) · 1.88 KB
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
buildscript {
repositories() {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.0.2.RELEASE"
classpath 'com.sourcemuse.gradle.plugin:gradle-mongo-plugin:0.1.0'
}
}
apply plugin: 'mongo'
apply plugin: 'eclipse'
apply plugin: 'groovy'
apply plugin: 'spring-boot'
jar {
baseName = 'aprocrastinator-backend'
version = '0.0.1'
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.2.2'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-data-mongodb'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'javax.inject:javax.inject:1'
testCompile 'junit:junit:4.11'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
testCompile 'info.cukes:cucumber-junit:1.1.5'
testCompile 'info.cukes:cucumber-groovy:1.1.5'
testCompile 'com.github.groovy-wslite:groovy-wslite:0.8.0'
testCompile "org.mongodb:mongo-java-driver:2.12.0"
}
test.testLogging.exceptionFormat = 'full'
configurations {
functTestCompile.extendsFrom testCompile
functTestRuntime.extendsFrom testRuntime
}
sourceSets {
functionalTest {
groovy.srcDir file('src/testFunctional/groovy')
resources.srcDir file('src/testFunctional/resources')
compileClasspath = sourceSets.main.output + sourceSets.test.output + configurations.functTestCompile
runtimeClasspath = output + compileClasspath + configurations.functTestRuntime
}
}
task functionalTest(type: Test) {
testClassesDir = sourceSets.functionalTest.output.classesDir
classpath = sourceSets.functionalTest.runtimeClasspath
dependsOn startManagedMongoDb, bootRun
finalizedBy stopMongoDb
}
check.dependsOn functionalTest
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}