import com.jetbrains.rd.gradle.plugins.applyKotlinJVM import com.jetbrains.rd.gradle.tasks.creatingCopySourcesTask applyKotlinJVM() plugins { kotlin("jvm") } kotlin { sourceSets { main { dependencies { api(project(":rd-core")) } } } } val testCopySources by creatingCopySourcesTask( kotlin.sourceSets.test, evaluationDependsOn(":rd-gen:models").tasks.named("generateEverything") ) tasks.named("compileTestKotlin") { dependsOn(testCopySources) } dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${com.jetbrains.rd.gradle.dependencies.kotlinxCoroutinesVersion}") testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:${com.jetbrains.rd.gradle.dependencies.kotlinVersion}") } publishing.publications.named("pluginMaven") { pom { name.set("rd-framework") description.set("Implementation of the RD protocol.") } }