generated from pricelees/issue-pr-template
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
import org.jetbrains.kotlin.gradle.plugin.KaptExtension
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
val springBootVersion = "3.5.3"
|
|
val kotlinVersion = "2.2.0"
|
|
|
|
id("io.spring.dependency-management") version "1.1.7" apply false
|
|
id("org.springframework.boot") version springBootVersion apply false
|
|
kotlin("jvm") version kotlinVersion apply false
|
|
kotlin("kapt") version kotlinVersion apply false
|
|
kotlin("plugin.spring") version kotlinVersion apply false
|
|
kotlin("plugin.jpa") version kotlinVersion apply false
|
|
}
|
|
|
|
group = "com.sangdol"
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply(plugin = "org.jetbrains.kotlin.jvm")
|
|
apply(plugin = "org.jetbrains.kotlin.kapt")
|
|
apply(plugin = "io.spring.dependency-management")
|
|
|
|
extensions.configure<JavaPluginExtension> {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
extensions.configure<KaptExtension> {
|
|
keepJavacAnnotationProcessors = true
|
|
}
|
|
|
|
dependencies {
|
|
add("implementation", "io.github.oshai:kotlin-logging-jvm:7.0.3")
|
|
add("implementation", "io.kotest:kotest-runner-junit5:5.9.1")
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
compilerOptions {
|
|
freeCompilerArgs.addAll(
|
|
"-Xjsr305=strict",
|
|
"-Xannotation-default-target=param-property"
|
|
)
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
}
|
|
}
|
|
}
|