33 lines
792 B
Plaintext
33 lines
792 B
Plaintext
// Spring Boot application module: Kotlin/JVM + Spring/JPA plugins + Boot plugin.
|
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("org.jetbrains.kotlin.plugin.spring")
|
|
id("org.jetbrains.kotlin.plugin.jpa")
|
|
id("org.springframework.boot")
|
|
id("lms.lint")
|
|
}
|
|
|
|
group = "ru.ysu.lms"
|
|
version = "0.1.0-SNAPSHOT"
|
|
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
compilerOptions {
|
|
freeCompilerArgs.add("-Xjsr305=strict")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Required by Spring for Kotlin reflection (Spring Data, @ConfigurationProperties binding).
|
|
"implementation"(kotlin("reflect"))
|
|
}
|
|
|
|
tasks.withType<Test>().configureEach {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events(TestLogEvent.FAILED, TestLogEvent.PASSED, TestLogEvent.SKIPPED)
|
|
}
|
|
}
|