Remove duplicated code to publish local artifact
This commit is contained in:
parent
9765deb787
commit
1cb656c32b
@ -29,6 +29,11 @@ task wrapper(type: Wrapper) {
|
|||||||
distributionType 'all'
|
distributionType 'all'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hasProperty('local')) {
|
||||||
|
ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL
|
||||||
|
ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
|
||||||
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
|
|
||||||
// Config
|
// Config
|
||||||
|
@ -30,9 +30,5 @@ afterEvaluate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
if (hasProperty('release')) {
|
||||||
if (hasProperty('local')) {
|
|
||||||
ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL
|
|
||||||
ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
|
|
||||||
}
|
|
||||||
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,5 @@ afterEvaluate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
if (hasProperty('release')) {
|
||||||
if (hasProperty('local')) {
|
|
||||||
ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL
|
|
||||||
ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
|
|
||||||
}
|
|
||||||
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
||||||
}
|
}
|
||||||
|
@ -23,9 +23,5 @@ afterEvaluate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
if (hasProperty('release')) {
|
||||||
if (hasProperty('local')) {
|
|
||||||
ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL
|
|
||||||
ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
|
|
||||||
}
|
|
||||||
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
||||||
}
|
}
|
||||||
|
@ -25,9 +25,5 @@ afterEvaluate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
if (hasProperty('release')) {
|
||||||
if (hasProperty('local')) {
|
|
||||||
ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL
|
|
||||||
ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
|
|
||||||
}
|
|
||||||
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user