Throw exception on missing envvar for Android-related builds (#1001)

This commit is contained in:
moving-bits
2023-01-05 10:45:33 +01:00
committed by GitHub
parent 6b98cb7d89
commit 88d8a7ed8a
4 changed files with 16 additions and 0 deletions

View File

@@ -34,3 +34,7 @@ if (project.hasProperty("SONATYPE_USERNAME")) {
project.apply from: "${rootProject.projectDir}/deploy.gradle"
}
}
if (System.getenv('ANDROID_HOME') == null) {
throw new GradleException("Environment variable ANDROID_HOME needs to be set to SDK folder")
}