-
Notifications
You must be signed in to change notification settings - Fork 836
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
Java 16 + gradle 7.0 compatibility #520
Conversation
As far as I understand, java 11 will pass the CI test and java 8 will be eternally failed because java 8 does not support --add-opens. Don't really know what to do with it. If java8 is essential than I suppose PR can be closed. Maybe in the future spotless plugin will do its job without need for add-opens, but at the same time lombok most likely will require it. |
Do you have a link for that? Or at least a comparison between these two? |
Thats a though one. I'll have a look this weekend. |
My mistake - it is lombok project that recommends this plugin - gradle itself does not recommend anything. This plugin is referenced on official lombok page: https://projectlombok.org/setup/gradle and it is also under active development - it has milestone and stable version from April, the former plugin didn't get an update from last May. FYI: Lombok right now is in the tough spot: projectlombok/lombok#2681 . There were many discussions about it on reddit and hackernews. |
IMO making our project compilable in the latest version is a good thing. @yidongnan What do you think? |
I included the gradle update in another PR that only updates dependencies #521, so that we can focus or changes here entirely to the J16 changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please update your PR for the latest changes?
in a week or two - right now I'm on holiday. But what about compatibility with java 8? My PR was incompatible with java 8 and it will stay this way in the future. If compatibity with java 8 is a must than what's the point? If you are ready to ditch java 8 - I'll rebase this branch on current state, no problem. |
I'm not sure about that yet. Enjoy your holidays, after that there is still plenty of time to decide on this. |
Conflicts: build.gradle gradle/wrapper/gradle-wrapper.properties
Fixes #604 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the long wait. Lets get this merged.
Hello. Tried to build examples on gradle 6.8.3 and java 16 and build process failed for 3 reasons:
0. Gradle 6.8.3 failed with Could not compile initialization script 'C:\Users\popfa\AppData\Local\Temp\ijmapper.gradle'. Updated gradle to 7.0.
After all changes local examples build and run ok, overall project also, javadoc is generated with getters/setters methods (checked on GrpcCodecDefinition class javadoc).