messages/generator/build.gradle
2021-10-03 16:32:01 +02:00

34 lines
782 B
Groovy

plugins {
id 'java'
id 'application'
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.kotlin.plugin.serialization'
}
mainClassName = 'MainKt'
dependencies {
implementation project(":pojos")
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2"
testImplementation platform("org.junit:junit-bom:5.8.1")
testImplementation "org.junit.jupiter:junit-jupiter"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
compileKotlin {
kotlinOptions {
jvmTarget = 11
freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn", "-Xjvm-default=all"]
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = 11
}