Plugins renaming: kotlinx-<buildSystem>-serialization-plugin
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</properties>
|
||||
|
||||
<groupId>org.jetbrains.kotlinx</groupId>
|
||||
<artifactId>kotlin-maven-serialization</artifactId>
|
||||
<artifactId>kotlinx-maven-serialization-plugin</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>0.1</version>
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import org.jetbrains.kotlin.maven.*
|
||||
|
||||
val SERIALIZATION_COMPILER_PLUGIN_ID = "org.jetbrains.kotlinx.serialization"
|
||||
|
||||
@Component(role = KotlinMavenPluginExtension::class, hint = "kotlin-serialization")
|
||||
@Component(role = KotlinMavenPluginExtension::class, hint = "kotlinx-serialization")
|
||||
class KotlinSerializationMavenPlugin : KotlinMavenPluginExtension {
|
||||
@Requirement
|
||||
lateinit var logger: Logger
|
||||
|
||||
@@ -47,13 +47,35 @@ jar {
|
||||
from(targetSrc) { include("META-INF/**") }
|
||||
}
|
||||
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
task sourceJar(type: Jar, dependsOn: classes) {
|
||||
classifier 'sources'
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenProject(MavenPublication) {
|
||||
from components.java
|
||||
groupId project.group
|
||||
artifactId project.name
|
||||
version project.version
|
||||
|
||||
artifact sourceJar {
|
||||
classifier "sources"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bintray {
|
||||
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
|
||||
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
|
||||
configurations = ['archives']
|
||||
publications = ['mavenProject']
|
||||
pkg {
|
||||
repo = 'kotlinx'
|
||||
name = 'kotlinx.serialization'
|
||||
name = 'kotlinx.serialization.plugin'
|
||||
userOrg = 'kotlin'
|
||||
licenses = ['Apache-2.0']
|
||||
vcsUrl = 'https://github.com/JetBrains/kotlin/tree/rr/kotlinx.serialization/libraries'
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ class SerializationGradleSubplugin : Plugin<Project> {
|
||||
class SerializationKotlinGradleSubplugin : KotlinGradleSubplugin<AbstractCompile> {
|
||||
companion object {
|
||||
val SERIALIZATION_GROUP_NAME = "org.jetbrains.kotlinx"
|
||||
val SERIALIZATION_ARTIFACT_NAME = "kotlin-serialization"
|
||||
val SERIALIZATION_ARTIFACT_NAME = "kotlinx-gradle-serialization-plugin"
|
||||
}
|
||||
|
||||
override fun isApplicable(project: Project, task: AbstractCompile) = SerializationGradleSubplugin.isEnabled(project)
|
||||
|
||||
Reference in New Issue
Block a user