From 5ab53c05eddc0da22c906da72b34f98ddc6cf754 Mon Sep 17 00:00:00 2001 From: Will Hedgecock Date: Wed, 14 Apr 2021 10:44:10 -0500 Subject: [PATCH] Only assert Java location if not automated build --- build.gradle | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 6c97f45..57f80c0 100644 --- a/build.gradle +++ b/build.gradle @@ -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