File tree Expand file tree Collapse file tree 2 files changed +28
-13
lines changed Expand file tree Collapse file tree 2 files changed +28
-13
lines changed Original file line number Diff line number Diff line change 1+ import org.gradle.accessors.dm.LibrariesForLibs
2+ import org.gradle.kotlin.dsl.the
3+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4+
5+ plugins {
6+ id(" base-kotlin-jvm-conventions" )
7+ }
8+
9+ // https://github.com/gradle/gradle/issues/15383#issuecomment-779893192
10+ val libs = the<LibrariesForLibs >()
11+
12+ // https://github.com/gradle/gradle/issues/17968#issuecomment-894742093
13+ pluginManager.apply (libs.plugins.spring.boot.get().pluginId)
14+ pluginManager.apply (libs.plugins.spring.dependency.management.get().pluginId)
15+ pluginManager.apply (libs.plugins.kotlin.plugin.spring.get().pluginId)
16+
17+ dependencies {
18+ testImplementation(libs.spring.boot.starter.test) {
19+ exclude(group = " org.junit.vintage" , module = " junit-vintage-engine" )
20+ }
21+ }
22+
23+ tasks.withType<KotlinCompile >().configureEach {
24+ compilerOptions { freeCompilerArgs.addAll(" -Xjsr305=strict" ) }
25+ }
26+
27+ tasks.withType<Test >().configureEach { useJUnitPlatform() }
Original file line number Diff line number Diff line change 1-
21plugins {
3- id(" base-kotlin-jvm-conventions" )
4- alias(libs.plugins.spring.dependency.management)
5- alias(libs.plugins.spring.boot)
6- alias(libs.plugins.kotlin.plugin.spring)
2+ id(" base-spring-boot-conventions" )
73}
84
95dependencies {
@@ -12,15 +8,7 @@ dependencies {
128 implementation(libs.kotlinx.coroutines.reactor)
139 implementation(libs.kotlinx.serialization.core.jvm)
1410 implementation(libs.kotlinx.serialization.json.jvm)
15-
1611 testImplementation(libs.kotlin.test)
1712 testImplementation(libs.bundles.testcontainers)
1813 testImplementation(libs.rector.test)
19- testImplementation(libs.spring.boot.starter.test) {
20- exclude(group = " org.junit.vintage" , module = " junit-vintage-engine" )
21- }
22- }
23-
24- tasks.test {
25- useJUnitPlatform()
2614}
You can’t perform that action at this time.
0 commit comments