-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Support running on Java 22 #26162
Comments
A similar issue for JDK 21 is at #25573 |
For compiling and testing, I split off #26245. I will rename and add a tasklist to this issue for being able to run Gradle on Java 22. |
Any progress on this? I'd want to build Java 22 EA source code with Gradle. |
Gradle does not yet support newer JDKs See https://docs.gradle.org/current/userguide/compatibility.html and gradle/gradle#26162 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915505 13f79535-47bb-0310-9956-ffa450edef68
Blocked on Groovy 3.x ASM update to 9.6, and likely https://issues.apache.org/jira/browse/GROOVY-11308 since the current 3.0.21-SNAPSHOT is difficult to upgrade to with this bug. |
Gradle does not yet support newer JDKs See https://docs.gradle.org/current/userguide/compatibility.html and gradle/gradle#26162 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915907 13f79535-47bb-0310-9956-ffa450edef68
FYI @mmoayyed I restructured the issue to reflect its status as a roadmap item and tentative plans to introduce the support for Java 22 (partial support in 8.7, full support is TBD) |
Very cool, thanks much! |
* build(deps): bump actions/checkout from 4.1.1 to 4.1.2 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4.1.1...v4.1.2) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * ci: allow tests to fail on java above 21 * ci: allow build to fail above java 21 gradle/gradle#26162 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JKatzwinkel <JKatzwinkel@users.noreply.github.com>
I encountered an error while trying to compile Java 22 using Gradle 8.7 Unsupported Java.
Your build is currently configured to use Java 22 and Gradle 8.5.
Possible solution:
- Use Java 21 as Gradle JVM: Open Gradle settings
- Open Gradle wrapper settings, change `distributionUrl` property to use compatible Gradle version and reload the project |
The error message indicates that you are using Gradle 8.5. Can you double check? |
This was done in #28552 |
If possible can anyone provide me the solution for this issue Unsupported Java. Possible solution:
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 66
|
@AmanShukla1809 This issue is tagged with milestone 8.8 RC1. So you probably have to wait for the release of the first release candidate of version 8.8. |
Expected Behavior
Gradle should support the ability to run using JDK 22, with all basic Gradle Build Tool features running smoothly for this release.
Status
Steps to complete
Original request
Original request was submitted by @mmoayyed . As of this writing, Gradle 8.3 presents the following error when running against JDK 22-ea:
OpenJDK recommends the following:
Apereo CAS is part of the Oracle JDK Compatibility program, and we are trying to help the JDK ecosystem by trying out latest versions of JDK to report feedback, issues, etc. This is no blocker at all and we can continue with JDK 21 builds. I did not see a relevant issue to track support for JDK 22, so thought to open one here.
The text was updated successfully, but these errors were encountered: