Change sam-with-receiver plugin to use published compiler plugin

- also publish 'kotlin-sam-with-receiver-compiler-plugin-embeddable' to
  be used with 'kotlin-compiler-embeddable'
- 'kotlin-maven-sam-with-receiver' now just adds
  'kotlin-sam-with-receiver-compiler-plugin' as normal dependency
  instead of embedding it into itself

^KT-52811 In Progress
This commit is contained in:
Yahor Berdnikau
2023-03-20 18:02:43 +01:00
committed by Space Team
parent a58266050f
commit 78c94b65b9
6 changed files with 32 additions and 23 deletions
@@ -0,0 +1,19 @@
plugins {
id("org.jetbrains.kotlin.jvm")
}
dependencies {
embedded(project(":kotlin-sam-with-receiver-compiler-plugin")) { isTransitive = false }
}
publish {
artifactId = artifactId.replace(".", "-")
}
runtimeJar(rewriteDefaultJarDepsToShadedCompiler())
sourcesJarWithSourcesFromEmbedded(
project(":kotlin-sam-with-receiver-compiler-plugin").tasks.named<Jar>("sourcesJar")
)
javadocJarWithJavadocFromEmbedded(
project(":kotlin-sam-with-receiver-compiler-plugin").tasks.named<Jar>("javadocJar")
)