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

JDK16 support in Gradle #13774

Closed
rieske opened this issue Jul 14, 2020 · 6 comments · Fixed by #16470
Closed

JDK16 support in Gradle #13774

rieske opened this issue Jul 14, 2020 · 6 comments · Fixed by #16470
Assignees
Labels
a:feature A new functionality @core Issue owned by GBT Core
Milestone

Comments

@rieske
Copy link
Contributor

rieske commented Jul 14, 2020

We have an experimental pipeline set up that tests Gradle against an early access release of JDK16.

So far the Groovy build scripts are failing to compile using JDK16. The errors look to be coming from the asm library that is bundled in our groovy-all distribution.
asm library does not yet support JDK16. From this commit it looks like the support is being worked on and will come out with version 9.
We should keep an eye for the release and probably coordinate with Groovy team to see if they could incorporate the update in the next iteration of Groovy 2.5

This is the first issue that needs to be overcome to get visibility on other potential breakages.

@rieske rieske added from:member a:feature A new functionality labels Jul 14, 2020
@rieske
Copy link
Contributor Author

rieske commented Jul 16, 2020

A beta of asm version 9 with JDK16 support is now available: https://asm.ow2.io/versions.html

@dreis2211
Copy link
Contributor

@rieske Since September ASM 9 should be available

@jjohannes jjohannes added this to the 7.0 RC1 milestone Jan 8, 2021
@big-guy big-guy added the @core Issue owned by GBT Core label Jan 11, 2021
@msgilligan
Copy link

Can JDK 16 support be added to Gradle 6.x?

@ljacomet
Copy link
Member

ljacomet commented Feb 4, 2021

See #15538 for existing problem with Java compilation

@big-guy
Copy link
Member

big-guy commented Feb 12, 2021

We're waiting for the Groovy 3 upgrade #15566

@tbroyer
Copy link
Contributor

tbroyer commented Feb 27, 2021

Fwiw, besides Groovy 3 (already merged and available in 7.0-M2 AFAICT), there are other issues due to https://openjdk.java.net/jeps/396:

I was able to workaround the first one by passing --illegal-access=permit in the test task's jvmArgs: https://scans.gradle.com/s/dy7knrif4vt3w/tests (other failures besides "is configuration-cache friendly" are currently expected)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality @core Issue owned by GBT Core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants