tidy up shared config, start setting up kafka processor

This commit is contained in:
Adam 2021-10-24 14:55:04 +02:00
parent cc1ca86b9c
commit 4329651c86
13 changed files with 332 additions and 4 deletions

View file

@ -9,12 +9,36 @@ plugins {
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11)) // "8"
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))
}
}
dependencies {
//<editor-fold desc="Main">
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation(kotlin("stdlib"))
//</editor-fold>
//<editor-fold desc="Test">
val junitVersion = "5.8.1"
testImplementation(enforcedPlatform("org.junit:junit-bom:$junitVersion"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
val kotestVersion = "4.6.3"
testImplementation(enforcedPlatform("io.kotest:kotest-bom:$kotestVersion"))
testImplementation("io.kotest:kotest-runner-junit5-jvm:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core-jvm:$kotestVersion")
testImplementation("io.kotest:kotest-property-jvm:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-json:$kotestVersion")
testImplementation("io.mockk:mockk:1.12.0")
//</editor-fold>
}
tasks.withType<KotlinCompile>().configureEach {
@ -24,4 +48,8 @@ tasks.withType<KotlinCompile>().configureEach {
"-Xopt-in=kotlin.time.ExperimentalTime",
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
)
}
tasks.compileTestKotlin {
kotlinOptions.freeCompilerArgs += "-Xopt-in=io.kotest.common.ExperimentalKotest"
}