JDK version determined incorrectly by Gradle on JDK 10
See original GitHub issuehttps://github.com/policeman-tools/forbidden-apis/wiki/BundledSignatures “Gradle automatically add the compile Java version”
forbiddenApis {
bundledSignatures = ['jdk-internal']
}
Error:
Parsing signatures failed: Invalid bundled signature reference (JDK version is invalid): jdk-internal-1.10
Workaround:
forbiddenApis {
bundledSignatures = ['jdk-internal-10']
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (12 by maintainers)
Top Results From Across the Web
Gradle: Could not determine java version from '11.0.2'
The obvious way, would be to update your project's gradle-wrapper to version 5.0. However, before updating, try running gradle app:installDebug ...
Read more >Could not determine java version from '9.0.1' - Gradle Forums
I fixed it by changing distributionUrl in the file [project]\gradle\wrapper\gradle-wrapper.properties to point to disribution of version 4.3. ( ...
Read more >Compatibility Guide for JDK 8 - Oracle
This document discusses types of potential incompatibilities relating to the JDK 8 release of the Java platform.
Read more >Gradle import doesn't work with java 10 : IDEA-188526
Caused by: org.gradle.api.GradleException: Could not determine Java version using executable C:\Tools\JDK10\bin\java.exe.
Read more >Wrong java (JDK version) in gradle and problems with building
Hey everyone! I Try to modding on 1.18.2 - Forge MDK 1.18.2 - 40.0.52. Modding on IntelliJ IDEA I Opened this MDK in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I will release a new version anyways for compatibility with Java 11, so this fix should be out soon.
I will commit this workaround and let Jenkins decide if it’s fine with Gradle: