diff --git a/backend.native/build.gradle b/backend.native/build.gradle index fcd2db0dd78..e9aa3fc4194 100644 --- a/backend.native/build.gradle +++ b/backend.native/build.gradle @@ -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 + } + } +} \ No newline at end of file