-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (68 loc) · 2.72 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
import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
import org.gradle.api.file.DuplicatesStrategy.INCLUDE
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.3.2" apply false
id("io.spring.dependency-management") version "1.1.6" apply false
id("org.asciidoctor.jvm.convert") version "3.3.2" apply false
kotlin("jvm") version "2.0.0" apply false
kotlin("plugin.spring") version "2.0.0" apply false
kotlin("plugin.jpa") version "2.0.0" apply false
kotlin("plugin.noarg") version "2.0.0" apply false
}
allprojects {
repositories {
mavenCentral()
}
if (project.childProjects.isEmpty()) {
apply {
plugin("io.spring.dependency-management")
}
the<DependencyManagementExtension>().apply {
imports {
mavenBom("io.github.logrecorder:logrecorder-bom:2.10.0")
mavenBom("io.github.openfeign:feign-bom:13.3")
mavenBom("org.jetbrains.kotlin:kotlin-bom:2.0.0")
mavenBom("org.testcontainers:testcontainers-bom:1.20.1")
mavenBom("org.zalando:logbook-bom:3.9.0")
mavenBom("org.springframework.cloud:spring-cloud-dependencies:2023.0.3")
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
dependencies {
dependency("com.github.dasniko:testcontainers-keycloak:2.6.0")
dependency("com.ninja-squad:springmockk:4.0.2")
dependency("io.kotest:kotest-assertions-core:5.9.1")
dependency("io.mockk:mockk-jvm:1.13.12")
}
}
}
tasks {
withType<Copy> { duplicatesStrategy = INCLUDE }
withType<Jar> { duplicatesStrategy = INCLUDE }
withType<JavaCompile> {
sourceCompatibility = "21"
targetCompatibility = "21"
}
withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs.add("-Xjsr305=strict")
apiVersion.set(KOTLIN_2_0)
jvmTarget.set(JVM_21)
incremental = false
}
}
withType<Test> {
group = "verification"
useJUnitPlatform()
testLogging {
events(FAILED, SKIPPED)
exceptionFormat = FULL
}
}
}
}