CAPAUT-471 Fix exception handling
This commit is contained in:
@@ -17,13 +17,13 @@ buildscript {
|
||||
}
|
||||
|
||||
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 )
|
||||
}
|
||||
|
||||
// Fail fast
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user