2020-11-21 10:44:30 +07:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2020-11-21 10:54:34 +07:00
|
|
|
kotlin("jvm")
|
2020-11-21 10:44:30 +07:00
|
|
|
}
|
|
|
|
|
2020-11-21 10:54:34 +07:00
|
|
|
dependencies {
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
2020-11-21 10:44:30 +07:00
|
|
|
|
2020-11-21 10:54:34 +07:00
|
|
|
implementation(kotlin("reflect"))
|
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
2020-11-21 10:44:30 +07:00
|
|
|
|
2020-11-21 10:54:34 +07:00
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
2020-11-21 10:44:30 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
2020-11-21 10:54:34 +07:00
|
|
|
useJUnitPlatform()
|
2020-11-21 10:44:30 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile> {
|
2020-11-21 10:54:34 +07:00
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
|
|
jvmTarget = "11"
|
|
|
|
}
|
2020-11-21 10:44:30 +07:00
|
|
|
}
|