-
Notifications
You must be signed in to change notification settings - Fork 55
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 JDK 16 #171
Comments
I can confirm the behavior with plugin version 2.2.4. |
Yap - same here. |
Issues is also present on broken version 2.3.0 |
This error is caused by some changes in Java 16: Try adding the following line to your
See also: https://docs.gradle.org/6.8.3/userguide/build_environment.html#sec:gradle_configuration_properties |
Probably this is because Groovy uses reflection to access protected field in class FilterOutputStream. |
Or just compile class |
@joschi |
@shalugin Would you create a pull request for this? |
Can you see if we can build with JDK16? b8b5ca9#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485 |
Building on jdk16 is possible only with gradle7 that ships with groovy3. |
@tha2015 Big thanks for quick review, merge and release. |
You are welcome! |
@joschi , unfortunately, the workaround you provided doesn't help, still getting the same error, we also can't upgrade to |
for JDK 17 its |
- Change docs to use version 2.3.2 as 2.2.4 doesn't work with jdk 17. - Issue was fixed in n0mer/gradle-git-properties#171
I had same issue, when u have different java version, my java environment was Java17, but my gradle properties has Source Compatibility Java8, so after changing to current version, the issue got resolved. |
Plugin fails under JDK 16:
The text was updated successfully, but these errors were encountered: