CAPAUT-471 Fix exception handling
This commit is contained in:
1 parent
90b9933d87
commit
d340eb0c85
1 file changed
+2
-2
@@ -17,13 +17,13 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
project.ext {
|
project.ext {
|
||||||
mavenAccessToken = ( project.hasProperty('MAVEN_PUBLISH_ACCESS_TOKEN') ? MAVEN_ACCESS_TOKEN : null )
|
mavenAccessToken = ( project.hasProperty('MAVEN_PUBLISH_ACCESS_TOKEN') ? MAVEN_PUBLISH_ACCESS_TOKEN : null )
|
||||||
mavenRepositoryUrl = ( project.hasProperty('MAVEN_PUBLISH_REPOSITORY_URL') ? MAVEN_PUBLISH_REPOSITORY_URL : null )
|
mavenRepositoryUrl = ( project.hasProperty('MAVEN_PUBLISH_REPOSITORY_URL') ? MAVEN_PUBLISH_REPOSITORY_URL : null )
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fail fast
|
// Fail fast
|
||||||
if ( mavenAccessToken == null || mavenRepositoryUrl == null ) {
|
if ( mavenAccessToken == null || mavenRepositoryUrl == null ) {
|
||||||
throw new GradleScriptException("Missing required properties: MAVEN_PUBLISH_ACCESS_TOKEN and MAVEN_PUBLISH_REPOSITORY_URL")
|
throw new GradleScriptException("Missing required properties: MAVEN_PUBLISH_ACCESS_TOKEN and MAVEN_PUBLISH_REPOSITORY_URL", null)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply plugins
|
// Apply plugins
|
||||||
|
|||||||
Reference in new issue
Block a user