60 lines
1.9 KiB
Kotlin
60 lines
1.9 KiB
Kotlin
plugins {
|
|
kotlin("jvm") version "1.9.25"
|
|
kotlin("plugin.spring") version "1.9.25"
|
|
kotlin("plugin.serialization") version "1.9.0"
|
|
id("org.springframework.boot") version "3.3.3"
|
|
id("io.spring.dependency-management") version "1.1.6"
|
|
}
|
|
|
|
group = "indi.herryYun"
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.ktor:ktor-serialization-gson:2.3.12")
|
|
implementation("io.ktor:ktor-client-gson:2.3.12")
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
implementation("org.springframework.boot:spring-boot-starter-websocket")
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("io.ktor:ktor-client-core-jvm:2.3.12")
|
|
implementation("io.ktor:ktor-client-cio:2.3.12")
|
|
implementation("io.ktor:ktor-client-serialization:2.3.12")
|
|
implementation("io.ktor:ktor-client-logging:2.3.12")
|
|
implementation("io.ktor:ktor-client-content-negotiation:2.3.12")
|
|
// https://mvnrepository.com/artifact/io.ktor/ktor-client-core
|
|
runtimeOnly("io.ktor:ktor-client-core:2.3.12")
|
|
compileOnly("org.projectlombok:lombok")
|
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
|
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
|
|
annotationProcessor("org.projectlombok:lombok")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.addAll("-Xjsr305=strict")
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|