Build: Correctly publish backend.native.jar to a local repo

This commit is contained in:
Ilya Matveev
2019-10-09 22:34:24 +03:00
committed by Ilya Matveev
parent 820ef588ae
commit 7dcb87a06d
+17
View File
@@ -19,6 +19,7 @@ apply plugin: "com.google.protobuf"
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: org.jetbrains.kotlin.NativeInteropPlugin
apply plugin: "maven-publish"
// (gets applied to this project and all its subprojects)
allprojects {
@@ -289,3 +290,19 @@ task debugCompiler(type: JavaExec) {
enableAssertions = true
args = findProperty("konan.debug.args").toString().tokenize() ?: []
}
publishing {
repositories {
maven { url = "$buildDir/repo" }
}
publications {
maven(MavenPublication) {
groupId = 'org.jetbrains.kotlin'
artifactId = 'backend.native'
version = konanVersionFull
from components.java
}
}
}