40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||
|
|
||
|
plugins {
|
||
|
id("org.springframework.boot") version "3.1.4"
|
||
|
id("io.spring.dependency-management") version "1.1.3"
|
||
|
kotlin("jvm") version "1.8.22"
|
||
|
kotlin("plugin.spring") version "1.8.22"
|
||
|
}
|
||
|
|
||
|
group = "dev.usbharu"
|
||
|
version = "0.0.1-SNAPSHOT"
|
||
|
|
||
|
java {
|
||
|
sourceCompatibility = JavaVersion.VERSION_17
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
||
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
||
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
||
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
|
||
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.7.3")
|
||
|
}
|
||
|
|
||
|
tasks.withType<KotlinCompile> {
|
||
|
kotlinOptions {
|
||
|
freeCompilerArgs += "-Xjsr305=strict"
|
||
|
jvmTarget = "17"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
tasks.withType<Test> {
|
||
|
useJUnitPlatform()
|
||
|
}
|