CAPAUT-471 Fix exception handling

This commit is contained in:
2024-10-25 14:25:29 +02:00
parent 90b9933d87
commit d340eb0c85

View File

@@ -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