Add check for local publishing

This commit is contained in:
Dimitry Ivanov 2018-08-06 16:27:56 +03:00
parent 1cb656c32b
commit 6a9f85146b

View File

@ -30,6 +30,9 @@ task wrapper(type: Wrapper) {
}
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.SNAPSHOT_REPOSITORY_URL = LOCAL_MAVEN_URL
}