From dc7339a174cbe7e7a2506b17335355b028a3f0d9 Mon Sep 17 00:00:00 2001 From: Sudarsan Balaji Date: Sat, 6 Nov 2021 00:22:38 +0530 Subject: [PATCH] Add publish configuration --- bindings/bdk-kotlin/android/build.gradle | 27 ++++++++++-------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/bindings/bdk-kotlin/android/build.gradle b/bindings/bdk-kotlin/android/build.gradle index 06b71ac..c3637d3 100644 --- a/bindings/bdk-kotlin/android/build.gradle +++ b/bindings/bdk-kotlin/android/build.gradle @@ -1,6 +1,8 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'maven-publish' +group = 'org.bitcoindevkit' +version = '0.1.0' android { compileSdkVersion 30 @@ -26,25 +28,18 @@ android { afterEvaluate { publishing { - publications { - // Creates a Maven publication called "release". - release(MavenPublication) { - // Applies the component for the release build variant. - from components.release - // You can then customize attributes of the publication as shown below. - groupId = 'org.bitcoindevkit' - artifactId = 'bdk' - version = '0.0.1-SNAPSHOT' + repositories { + maven { + url myMavenRepoWriteUrl } - // Creates a Maven publication called “debug”. - debug(MavenPublication) { - // Applies the component for the debug build variant. - from components.debug + } - groupId = 'org.bitcoindevkit' - artifactId = 'bdk-debug' - version = '0.0.1-SNAPSHOT' + publications { + + maven(MavenPublication) { + from components.release + artifactId = 'bdk-android' } } }