From d886986b96b7a11476c56fb6d0e1c5936833ffc9 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Wed, 9 Oct 2019 18:56:11 +0300 Subject: [PATCH] Build: Publish backend.native.jar to a local repo --- backend.native/build.gradle | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/backend.native/build.gradle b/backend.native/build.gradle index fcd2db0dd78..095f19e383e 100644 --- a/backend.native/build.gradle +++ b/backend.native/build.gradle @@ -19,6 +19,10 @@ apply plugin: "com.google.protobuf" apply plugin: 'java' apply plugin: 'kotlin' apply plugin: org.jetbrains.kotlin.NativeInteropPlugin +apply plugin: "maven-publish" + +group = 'org.jetbrains.kotlin' +version = konanVersionFull // (gets applied to this project and all its subprojects) allprojects { @@ -289,3 +293,15 @@ task debugCompiler(type: JavaExec) { enableAssertions = true args = findProperty("konan.debug.args").toString().tokenize() ?: [] } + +publishing { + repositories { + maven { url = "$buildDir/repo" } + } + + publications { + maven(MavenPublication) { + from components.java + } + } +}