messages/generator/build.gradle
2021-12-17 21:04:04 +01:00

34 lines
799 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:$serialization_version"
implementation 'org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.3'
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
}