Add publish configuration

This commit is contained in:
Sudarsan Balaji 2021-11-06 00:22:38 +05:30
parent 931461e10d
commit dc7339a174

View File

@ -1,6 +1,8 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
group = 'org.bitcoindevkit'
version = '0.1.0'
android { android {
compileSdkVersion 30 compileSdkVersion 30
@ -26,25 +28,18 @@ android {
afterEvaluate { afterEvaluate {
publishing { 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. repositories {
groupId = 'org.bitcoindevkit' maven {
artifactId = 'bdk' url myMavenRepoWriteUrl
version = '0.0.1-SNAPSHOT'
} }
// Creates a Maven publication called debug. }
debug(MavenPublication) {
// Applies the component for the debug build variant.
from components.debug
groupId = 'org.bitcoindevkit' publications {
artifactId = 'bdk-debug'
version = '0.0.1-SNAPSHOT' maven(MavenPublication) {
from components.release
artifactId = 'bdk-android'
} }
} }
} }