-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash when building with a JDK instead of a JRE #6676
Conversation
* A previouus change left a reference to an uninitialized property in build.gradle. This caused a crash when trying to produce an error message warning that the JDK was not found. Ex: Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'requiredJavaVersion' for root project 'gatk' of type org.gradle.api.Project * Fix the crash by removing the reference to the missing property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
@@ -147,7 +147,7 @@ def ensureBuildPrerequisites(largeResourcesFolder, buildPrerequisitesMessage, sk | |||
if (JavaVersion.current().isJava8() && ToolProvider.getSystemToolClassLoader() == null) { | |||
throw new GradleException( | |||
"The ClassLoader obtained from the Java ToolProvider is null. " | |||
+ "A Java $requiredJavaVersion JDK must be installed. $buildPrerequisitesMessage") | |||
+ "A full Java 8 or 11 JDK must be installed, check that you are not using a JRE. $buildPrerequisitesMessage") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that we want to claim support for 11 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. We claim it on line 153 as well.
* A previouus change left a reference to an uninitialized property in build.gradle. This caused a crash when trying to produce an error message warning that the JDK was not found. Ex: Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'requiredJavaVersion' for root project 'gatk' of type org.gradle.api.Project * Fix the crash by removing the reference to the missing property.
* A previouus change left a reference to an uninitialized property in build.gradle. This caused a crash when trying to produce an error message warning that the JDK was not found. Ex: Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'requiredJavaVersion' for root project 'gatk' of type org.gradle.api.Project * Fix the crash by removing the reference to the missing property.
A previouus change left a reference to an uninitialized property in build.gradle.
This caused a crash when trying to produce an error message warning that the JDK was not found.
Ex: Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'requiredJavaVersion' for root project 'gatk' of type org.gradle.api.Project
Fix the crash by removing the reference to the missing property.