Publish 'kotlinx-serialization-compiler-plugin' separately
- Also publish 'kotlinx-serialization-compiler-plugin-embeddable' to be used with 'kotlin-compiler-embeddable'. - Now Serialization Maven and Gradle plugins do not embed plugin into itself, but declare on published one normal dependency. - 'kotlin-serialization-unshaded' publication is deprecated. ^KT-52811 In Progress
This commit is contained in:
committed by
Space Team
parent
78c94b65b9
commit
a58d6fd13a
@@ -72,6 +72,8 @@ sourceSets {
|
||||
|
||||
optInToExperimentalCompilerApi()
|
||||
|
||||
publish()
|
||||
|
||||
runtimeJar()
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
plugins {
|
||||
id("org.jetbrains.kotlin.jvm")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
embedded(project(":kotlinx-serialization-compiler-plugin")) { isTransitive = false }
|
||||
}
|
||||
|
||||
publish {
|
||||
artifactId = artifactId.replace(".", "-")
|
||||
}
|
||||
|
||||
runtimeJar(rewriteDefaultJarDepsToShadedCompiler())
|
||||
sourcesJarWithSourcesFromEmbedded(
|
||||
project(":kotlinx-serialization-compiler-plugin").tasks.named<Jar>("sourcesJar")
|
||||
)
|
||||
javadocJarWithJavadocFromEmbedded(
|
||||
project(":kotlinx-serialization-compiler-plugin").tasks.named<Jar>("javadocJar")
|
||||
)
|
||||
Reference in New Issue
Block a user