Add ability for signed/published builds
This commit is contained in:
parent
eab11331f0
commit
cd450208ff
|
@ -5,6 +5,7 @@
|
|||
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk
|
||||
|
@ -56,5 +57,22 @@ afterEvaluate {
|
|||
from components.release
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ apply plugin: 'com.android.library'
|
|||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk
|
||||
|
@ -70,5 +71,23 @@ afterEvaluate {
|
|||
from components.release
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk
|
||||
|
@ -61,5 +62,22 @@ afterEvaluate {
|
|||
from components.release
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk
|
||||
|
@ -61,5 +62,22 @@ afterEvaluate {
|
|||
from components.release
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk
|
||||
|
@ -60,5 +61,23 @@ afterEvaluate {
|
|||
from components.release
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ apply plugin: 'com.android.library'
|
|||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk
|
||||
|
@ -69,5 +70,22 @@ afterEvaluate {
|
|||
from components.release
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ apply plugin: 'kotlin-android'
|
|||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
android {
|
||||
compileSdkVersion androidCompileSdk
|
||||
|
@ -79,5 +80,22 @@ afterEvaluate {
|
|||
from components.release
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue