Skip to content
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

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

lbergelson
Copy link
Member

  • 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.
Copy link
Collaborator

@jonn-smith jonn-smith left a 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")
Copy link
Contributor

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?

Copy link
Member Author

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.

@lbergelson lbergelson merged commit 80b2111 into master Jun 24, 2020
@lbergelson lbergelson deleted the lb_fix_gradle_crash branch June 24, 2020 17:33
jonn-smith pushed a commit that referenced this pull request Jul 14, 2020
* 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.
mwalker174 pushed a commit that referenced this pull request Nov 3, 2020
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants