[K/N][publish] Publish kotlin-native-compiler-embeddable.jar
Add an ability to publish kotlin-native-compiler-embeddable.jar and sources to maven. Adds necessary for that sourcesJar and javadocJar tasks. Note that Native distribution uses this jar without a version postfix. Also cleaned up the obsolete backend.native publication and renamed project to match its name. Merge-request: KT-MR-12974 Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
5562c95155
commit
9f9b4d1981
@@ -11,7 +11,6 @@ import org.jetbrains.kotlin.tools.NativePluginKt
|
||||
|
||||
buildscript {
|
||||
apply from: "../../kotlin-native/gradle/kotlinGradlePlugin.gradle"
|
||||
apply plugin: 'project-report'
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
@@ -238,23 +237,9 @@ tasks.register("debugCompiler", JavaExec) {
|
||||
args = findProperty("konan.debug.args").toString().tokenize() ?: []
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven { url = "$buildDir/repo" }
|
||||
}
|
||||
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
groupId = 'org.jetbrains.kotlin'
|
||||
artifactId = 'backend.native'
|
||||
version = kotlinVersion
|
||||
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RepoArtifacts.sourcesJar(project) {
|
||||
it.from(sourceSets["cli_bc"].allSource)
|
||||
it.from(sourceSets["compiler"].allSource)
|
||||
}
|
||||
|
||||
RepoArtifacts.javadocJar(project)
|
||||
|
||||
Reference in New Issue
Block a user