-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
75 lines (62 loc) · 2.14 KB
/
build.gradle.kts
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
75
//todo remove this suppression when https://github.com/gradle/gradle/issues/22797 is fixed
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
java
`jvm-test-suite`
alias(libs.plugins.spring.boot)
alias(libs.plugins.spring.dependency.management)
}
group = "dev.sbszcz"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
dependencies {
implementation(libs.spring.boot.starter)
implementation(libs.spring.boot.starter.web)
developmentOnly(libs.spring.boot.devtools)
implementation(libs.apache.httpclient)
implementation(libs.jetbrains.annotations)
}
testing {
suites {
register<JvmTestSuite>("componentTest") {
dependencies {
implementation(libs.spring.boot.starter.test)
implementation(libs.wiremock)
implementation(libs.assertj)
implementation(libs.jsonassert)
implementation(libs.javax.annotation.api)
// why does this NOT work???
// implementation(project())
// why does this work????
implementation(sourceSets.main.get().runtimeClasspath)
}
}
configureEach {
if (this is JvmTestSuite) {
targets {
all {
testTask {
testLogging {
events = setOf(
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED,
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED,
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
)
// showStandardStreams = true
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
outputs.upToDateWhen { false }
}
}
}
}
}
}
}