-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (62 loc) · 1.74 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
73
74
plugins {
id 'java'
id 'idea'
id 'org.springframework.boot' version '2.3.3.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
jcenter()
}
sourceSets {
functionalTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/functional-test/java')
}
resources.srcDir file('src/functional-test/resources')
}
}
idea {
module {
testSourceDirs += project.sourceSets.functionalTest.java.srcDirs
testSourceDirs += project.sourceSets.functionalTest.resources.srcDirs
}
}
configurations {
functionalTestImplementation.extendsFrom testImplementation
functionalTestRuntimeOnly.extendsFrom testRuntimeOnly
}
task functionalTest(type: Test) {
group = 'verification'
description = 'Runs the functional tests.'
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
outputs.upToDateWhen { false }
mustRunAfter test
useJUnitPlatform()
testLogging {
events = ['FAILED', 'PASSED', 'SKIPPED', 'STANDARD_OUT']
}
}
dependencies {
/* Spring Boot */
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
testLogging {
events = ['FAILED', 'PASSED', 'SKIPPED', 'STANDARD_OUT']
}
}
check {
dependsOn functionalTest
}