33 lines
727 B
Plaintext
33 lines
727 B
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("java-convention")
|
|
kotlin("jvm")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
implementation(platform(kotlin("bom")))
|
|
testImplementation("io.kotest:kotest-runner-junit5:4.4.1")
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions {
|
|
jvmTarget = "15"
|
|
javaParameters = true
|
|
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
sourceSets.all {
|
|
languageSettings.enableLanguageFeature("InlineClasses")
|
|
}
|
|
sourceSets["main"].kotlin.setSrcDirs(listOf("src"))
|
|
sourceSets["test"].kotlin.setSrcDirs(listOf("test"))
|
|
}
|