Add check for local publishing
This commit is contained in:
parent
1cb656c32b
commit
6a9f85146b
@ -30,6 +30,9 @@ task wrapper(type: Wrapper) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasProperty('local')) {
|
if (hasProperty('local')) {
|
||||||
|
if (!hasProperty('LOCAL_MAVEN_URL')) {
|
||||||
|
throw new RuntimeException('Cannot publish to local maven as no such property exists: LOCAL_MAVEN_URL')
|
||||||
|
}
|
||||||
ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL
|
ext.RELEASE_REPOSITORY_URL = LOCAL_MAVEN_URL
|
||||||
ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
|
ext.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user