38 lines
897 B
Groovy
38 lines
897 B
Groovy
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id 'org.springframework.boot' version '2.7.16'
|
|
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
|
|
id 'org.jetbrains.kotlin.plugin.spring' version '1.6.21'
|
|
}
|
|
|
|
group = 'dev.usbharu'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
sourceCompatibility = '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'
|
|
}
|
|
|
|
tasks.withType(KotlinCompile) {
|
|
kotlinOptions {
|
|
freeCompilerArgs += '-Xjsr305=strict'
|
|
jvmTarget = '17'
|
|
}
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|