Publish serialization plugin as kotlin-serialization-compiler-plugin

With this change it will have consistent naming with other compiler plugins.

'-embeddable' was also renamed.

'dist' should contain two identical jar files:
- 'serialization-compiler-plugin.jar'
- 'kotlinx-serialization-compiler-plugin.jar'

^KT-58530 In Progress
This commit is contained in:
Yahor Berdnikau
2023-05-09 22:47:48 +02:00
committed by Space Team
parent bc7b1094c3
commit eef7c3e834
7 changed files with 67 additions and 8 deletions
@@ -125,7 +125,7 @@
<!-- Compiler plugins. They can be added to the JPS process via KOTLIN_BUNDLED Path Variable -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>kotlinx-serialization-compiler-plugin</artifactId>
<artifactId>kotlin-serialization-compiler-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
@@ -41,7 +41,7 @@
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlinx-serialization-compiler-plugin</artifactId>
<artifactId>kotlin-serialization-compiler-plugin</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
@@ -24,8 +24,8 @@ class SerializationGradleSubplugin :
companion object {
const val SERIALIZATION_GROUP_NAME = "org.jetbrains.kotlin"
const val SERIALIZATION_ARTIFACT_NAME = "kotlinx-serialization-compiler-plugin-embeddable"
const val SERIALIZATION_ARTIFACT_UNSHADED_NAME = "kotlinx-serialization-compiler-plugin"
const val SERIALIZATION_ARTIFACT_NAME = "kotlin-serialization-compiler-plugin-embeddable"
const val SERIALIZATION_ARTIFACT_UNSHADED_NAME = "kotlin-serialization-compiler-plugin"
}
override fun isApplicable(kotlinCompilation: KotlinCompilation<*>): Boolean = true