Add publish configuration
This commit is contained in:
parent
931461e10d
commit
dc7339a174
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user