60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
plugins {
|
|
kotlin("jvm") version "1.9.25"
|
|
kotlin("plugin.spring") version "1.9.25"
|
|
id("org.springframework.boot") version "3.5.3"
|
|
id("io.spring.dependency-management") version "1.1.7"
|
|
kotlin("plugin.jpa") version "1.9.25"
|
|
}
|
|
|
|
group = "com.sangdol"
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
runtimeOnly("com.h2database:h2")
|
|
runtimeOnly("com.mysql:mysql-connector-j")
|
|
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
|
|
|
|
|
|
testImplementation("io.mockk:mockk:1.14.4")
|
|
testImplementation("io.kotest:kotest-runner-junit5:5.9.1")
|
|
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")
|
|
}
|
|
}
|
|
|
|
allOpen {
|
|
annotation("jakarta.persistence.Entity")
|
|
annotation("jakarta.persistence.MappedSuperclass")
|
|
annotation("jakarta.persistence.Embeddable")
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|