From 7dcb87a06daaea5070b8e9a4f7d6b41e43b99219 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Wed, 9 Oct 2019 22:34:24 +0300 Subject: [PATCH] Build: Correctly publish backend.native.jar to a local repo --- backend.native/build.gradle | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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