-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (58 loc) · 1.99 KB
/
Copy pathbuild.gradle
File metadata and controls
71 lines (58 loc) · 1.99 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 {
jcenter()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'idea'
jar.baseName = 'todo-list'
jar.version = '1.0.0'
jar.dependsOn('ui:assemble')
jar.from('ui/dist') { into 'static/js' }
jar.from('ui/app/index.html') { into 'static' }
repositories {
mavenCentral()
}
bootRun.addResources = true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/java')
}
resources.srcDir file('src/integration-test/resources')
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
dependencies {
compile("org.springframework.boot:spring-boot-devtools:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-data-mongodb:${springBootVersion}")
compile("org.projectlombok:lombok:1.16.10")
compile("com.google.guava:guava:19.0")
testCompile("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
integrationTestCompile("de.flapdoodle.embed:de.flapdoodle.embed.mongo:1.50.5")
}
task integrationTest(type: Test) {
group 'Verification'
description 'Runs the integration tests.'
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
systemProperties['jar.path'] = jar.archivePath
}
check.dependsOn integrationTest
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}