Publish to Maven Central #9

Merged
akinwale merged 7 commits from maven-central into master 2021-06-25 01:31:24 +02:00
5 changed files with 32 additions and 23 deletions
Showing only changes of commit a618f8ca4f - Show all commits

View file

@ -14,6 +14,7 @@ build arm64 aar:
- bin/lbrysdk-*-release__arm64.aar
expire_in: 1 week
script:
- export NEXUS_SIGNING_KEYRING_FILE=$CI_PROJECT_DIR/signing.pgp
- export PATH=/usr/bin:$PATH
- wget -q 'https://eu.crystax.net/download/crystax-ndk-10.3.2-linux-x86_64.tar.xz' -P ~/.buildozer/android/
- tar -xf ~/.buildozer/android/crystax-ndk-10.3.2-linux-x86_64.tar.xz -C ~/.buildozer/android/
@ -38,6 +39,7 @@ build arm aar:
- bin/lbrysdk-*-release__arm.aar
expire_in: 1 week
script:
- export NEXUS_SIGNING_KEYRING_FILE=$CI_PROJECT_DIR/signing.pgp
- export PATH=/usr/bin:$PATH
- wget -q 'https://eu.crystax.net/download/crystax-ndk-10.3.2-linux-x86_64.tar.xz' -P ~/.buildozer/android/
- tar -xf ~/.buildozer/android/crystax-ndk-10.3.2-linux-x86_64.tar.xz -C ~/.buildozer/android/

View file

@ -3,11 +3,12 @@ buildscript {
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.novoda:bintray-release:0.9.2'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
@ -24,7 +25,11 @@ allprojects {
}
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.bmuschko.nexus'
archivesBaseName = 'lbrysdk64'
group = "io.lbry"
version = "{{ args.version }}"
android {
compileSdkVersion {{ android_api }}
@ -96,15 +101,10 @@ subprojects {
}
}
publish {
userOrg = 'lbryio'
repoName = 'io.lbry'
groupId = 'io.lbry'
artifactId = 'lbrysdk64'
publishVersion = '{{args.version}}'
licences = ['MIT']
desc = 'LBRY SDK packaged as Android AAR (64-bit)'
website = 'https://github.com/lbryio/lbry-android-sdk'
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
dependencies {

View file

@ -3,11 +3,12 @@ buildscript {
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.novoda:bintray-release:0.9.2'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
@ -24,7 +25,11 @@ allprojects {
}
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.bmuschko.nexus'
archivesBaseName = 'lbrysdk32'
group = "io.lbry"
version = "{{ args.version }}"
android {
compileSdkVersion {{ android_api }}
@ -96,15 +101,10 @@ subprojects {
}
}
publish {
userOrg = 'lbryio'
repoName = 'io.lbry'
groupId = 'io.lbry'
artifactId = 'lbrysdk32'
publishVersion = '{{args.version}}'
licences = ['MIT']
desc = 'LBRY SDK packaged as Android AAR (32-bit)'
website = 'https://github.com/lbryio/lbry-android-sdk'
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
dependencies {

View file

@ -1,2 +1,9 @@
android.useAndroidX=true
android.enableJetifier=true
android.enableJetifier=true
nexusUsername=${env.SONATYPE_USERNAME}
nexusPassword=${env.SONATYPE_PASSWORD}
signing.keyId=${env.NEXUS_SIGNING_KEY_ID}
signing.password=${env.NEXUS_SIGNING_KEY_PASSWORD}
signing.secretKeyRingFile=${env.NEXUS_SIGNING_KEYRING_FILE}

BIN
signing.pgp Normal file

Binary file not shown.