[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:
Pavel Punegov
2023-11-15 14:54:04 +00:00
committed by Space Team
parent 5562c95155
commit 9f9b4d1981
8 changed files with 87 additions and 53 deletions
+2 -17
View File
@@ -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)