-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
60 lines (47 loc) · 1.45 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
plugins {
id 'org.springframework.boot' version '2.7.4'
id 'io.spring.dependency-management' version '1.0.14.RELEASE'
id 'java'
}
repositories {
mavenCentral()
}
sourceSets {
intTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
configurations {
intTestImplementation.extendsFrom implementation
intTestRuntimeOnly.extendsFrom runtimeOnly
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springdoc:springdoc-openapi-webmvc-core:1.6.11'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.2'
testImplementation 'io.rest-assured:rest-assured:4.5.1'
intTestImplementation 'org.junit.jupiter:junit-jupiter:5.7.2'
intTestImplementation 'io.rest-assured:rest-assured:4.5.1'
}
group = 'hands.on.testkube'
version = '1.0.0'
sourceCompatibility = '11'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.register('integrationTest', Test) {
description = 'Runs integration tests.'
group = 'verification'
testClassesDirs = sourceSets.intTest.output.classesDirs
classpath = sourceSets.intTest.runtimeClasspath
}
// integrationTest.dependsOn test
check.dependsOn integrationTest
tasks.withType(Test) {
useJUnitPlatform()
}
tasks.named("bootBuildImage") {
imageName = "${project.name}:${project.version}"
}