58 lines
1.6 KiB
Kotlin
58 lines
1.6 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("org.springframework.boot") version "3.3.4"
|
|
id("io.spring.dependency-management") version "1.1.6"
|
|
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
|
|
kotlin("jvm") version "1.9.25"
|
|
kotlin("plugin.spring") version "1.9.25"
|
|
}
|
|
|
|
group = "de.hoennig"
|
|
version = "0.1.0-SNAPSHOT"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("info.picocli:picocli-spring-boot-starter:4.7.6")
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
|
|
// Kotest
|
|
testImplementation("io.kotest:kotest-runner-junit5:5.9.1")
|
|
testImplementation("io.kotest:kotest-assertions-core:5.9.1")
|
|
testImplementation("io.kotest.extensions:kotest-extensions-spring:1.3.0")
|
|
|
|
// MockK
|
|
testImplementation("io.mockk:mockk:1.13.11")
|
|
testImplementation("com.ninja-squad:springmockk:4.0.2")
|
|
|
|
// WireMock
|
|
testImplementation("org.wiremock.integrations:wiremock-spring-boot:3.1.0")
|
|
|
|
// Testcontainers (versions managed by Spring Boot BOM)
|
|
testImplementation("org.springframework.boot:spring-boot-testcontainers")
|
|
testImplementation("org.testcontainers:testcontainers")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions {
|
|
freeCompilerArgs += "-Xjsr305=strict"
|
|
jvmTarget = "21"
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|