Publish lombok compiler plugin separately

- also add 'kotlin-lombok-compiler-plugin-embeddable' to be used with
  'kotlin-compiler-emebeddable'
- 'kotlin-maven-lombok' does not try to embed plugin into itself and
  just depends on compiler plugin as normal dependency

^KT-52811 In Progress
This commit is contained in:
Yahor Berdnikau
2023-03-20 17:55:28 +01:00
committed by Space Team
parent 5e41cbda75
commit 1a4d203d1c
6 changed files with 28 additions and 24 deletions
+2
View File
@@ -67,6 +67,8 @@ projectTest(jUnitMode = JUnitMode.JUnit5) {
}
}
publish()
runtimeJar()
sourcesJar()
javadocJar()
@@ -0,0 +1,18 @@
plugins {
id("org.jetbrains.kotlin.jvm")
}
dependencies {
embedded(project(":kotlin-lombok-compiler-plugin")) { isTransitive = false }
}
publish {
artifactId = artifactId.replace(".", "-")
}
runtimeJar(rewriteDefaultJarDepsToShadedCompiler())
sourcesJarWithSourcesFromEmbedded(
project(":kotlin-lombok-compiler-plugin").tasks.named<Jar>("sourcesJar")
)
javadocJarWithJavadocFromEmbedded(
project(":kotlin-lombok-compiler-plugin").tasks.named<Jar>("javadocJar")
)