plugins { id("java-library") alias(libs.plugins.jetbrains.kotlin.jvm) `maven-publish` } java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } kotlin { compilerOptions { jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11 } } tasks.test { useJUnitPlatform() } dependencies { implementation(libs.kotlin.reflect) implementation(libs.kotlinx.coroutines.core) testImplementation(platform("org.junit:junit-bom:5.14.4")) testImplementation("org.junit.jupiter:junit-jupiter:5.14.4") testImplementation("org.amshove.kluent:kluent:1.71") testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.11.0") testRuntimeOnly("org.junit.platform:junit-platform-launcher") } apply(from = "$rootDir/scripts/publish-root.gradle.kts") afterEvaluate { configure { publications { register("java") { artifactId = "core" from(components["java"]) } } } }