generated from pricelees/issue-pr-template
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
plugins {
|
|
val springBootVersion = "3.5.3"
|
|
val springDependencyVersion = "1.1.7"
|
|
val kotlinVersion = "2.2.0"
|
|
|
|
id("org.springframework.boot") version springBootVersion
|
|
id("io.spring.dependency-management") version springDependencyVersion
|
|
|
|
//kotlin plugins
|
|
kotlin("jvm") version kotlinVersion
|
|
kotlin("plugin.spring") version kotlinVersion
|
|
}
|
|
|
|
group = "com.sangdol"
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter-validation")
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
|
implementation("io.github.oshai:kotlin-logging-jvm:7.0.3")
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
tasks {
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
compileKotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.add("-Xjsr305=strict")
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
freeCompilerArgs.set(listOf("-Xannotation-default-target=param-property"))
|
|
}
|
|
}
|
|
|
|
compileTestKotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
freeCompilerArgs.set(listOf("-Xannotation-default-target=param-property"))
|
|
}
|
|
}
|
|
} |