2022-09-18 13:56:02 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
|
|
plugins {
|
2022-10-02 12:11:06 +02:00
|
|
|
id("kafkatorio.conventions.kotlin-dsl")
|
|
|
|
|
// `kotlin-dsl`
|
|
|
|
|
// kotlin("jvm") version embeddedKotlinVersion
|
2022-09-18 13:56:02 +02:00
|
|
|
}
|
|
|
|
|
|
2022-09-18 20:49:32 +02:00
|
|
|
dependencies {
|
|
|
|
|
implementation(platform(libs.kotlin.bom))
|
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-serialization")
|
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable")
|
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
|
|
|
|
|
|
|
|
|
|
implementation(platform(libs.kotlinx.coroutines.bom))
|
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
|
|
|
|
|
|
implementation(platform(libs.kotlinxSerialization.bom))
|
|
|
|
|
implementation(libs.kotlinxSerialization.core)
|
|
|
|
|
implementation(libs.kotlinxSerialization.json)
|
|
|
|
|
|
|
|
|
|
implementation("com.github.node-gradle:gradle-node-plugin:${libs.versions.gradleNodePlugin.get()}")
|
|
|
|
|
|
|
|
|
|
implementation(platform(libs.kotest.bom))
|
|
|
|
|
implementation("io.kotest:kotest-framework-multiplatform-plugin-gradle")
|
|
|
|
|
|
2022-10-04 23:00:09 +02:00
|
|
|
implementation(libs.gradlePlugin.kvision)
|
2022-09-18 20:49:32 +02:00
|
|
|
|
2022-10-04 23:00:09 +02:00
|
|
|
implementation(libs.semver)
|
2022-09-18 20:49:32 +02:00
|
|
|
|
|
|
|
|
implementation(platform(libs.okio.bom))
|
|
|
|
|
implementation(libs.okio.core)
|
|
|
|
|
|
|
|
|
|
implementation(libs.kotlinx.cli)
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-04 23:00:09 +02:00
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
|
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
|
|
|
"-opt-in=kotlin.ExperimentalStdlibApi",
|
|
|
|
|
"-opt-in=kotlin.time.ExperimentalTime",
|
|
|
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-02 12:11:06 +02:00
|
|
|
//val gradleJvmTarget = "11"
|
|
|
|
|
//
|
|
|
|
|
//kotlin {
|
|
|
|
|
// jvmToolchain {
|
|
|
|
|
// (this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(gradleJvmTarget))
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//kotlinDslPluginOptions {
|
|
|
|
|
// jvmTarget.set(gradleJvmTarget)
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//tasks.withType<KotlinCompile>().configureEach {
|
|
|
|
|
// kotlinOptions {
|
|
|
|
|
// jvmTarget = gradleJvmTarget
|
|
|
|
|
// }
|
|
|
|
|
//}
|