Only assert Java location if not automated build

This commit is contained in:
Will Hedgecock 2021-04-14 10:44:10 -05:00
parent b40fa73023
commit 5ab53c05ed
1 changed files with 5 additions and 2 deletions

View File

@ -15,8 +15,11 @@ archivesBaseName = 'jSerialComm'
version = '2.6.2'
ext.moduleName = 'com.fazecast.jSerialComm'
assert hasProperty('java6Home'): "Set the property 'java6Home' in your gradle.properties file pointing to a Java 6 JDK installation"
assert hasProperty('java9Home'): "Set the property 'java9Home' in your gradle.properties file pointing to a Java 9 JDK installation"
if (!System.getProperty("automated", "false").equals("true"))
{
assert hasProperty('java6Home'): "Set the property 'java6Home' in your gradle.properties file pointing to a Java 6 JDK installation"
assert hasProperty('java9Home'): "Set the property 'java9Home' in your gradle.properties file pointing to a Java 9 JDK installation"
}
sourceCompatibility = 1.6
targetCompatibility = 1.6