T268225 Switch Gerrit from Java 8 to Java 11 (original) (raw)
The puppet bits are preparation work to let us "trivially" switch from java 8 to java 11.
What worries me is whether our compiled plugin would actually work with java 11, pretty sure they got compiled with java 8 and maybe that will just work but I would like to avoid testing in production.
My plan was/is to:
- stop recompiling plugins that are already shipped by upstream .war
- script the discovery of the extra plugins we have on our setup, which I have updated at https://wikitech.wikimedia.org/wiki/Gerrit#Fetch_our_additional_plugins
- attempt to script the build of the plugins: https://wikitech.wikimedia.org/wiki/Gerrit#Plugins
- I have stopped there since some plugins do not support standalone build and require to be build in Gerrit source
Ideally all plugins would support standalone build. I gave it a try and send a patch upstream but haven't followed up on the review https://gerrit-review.googlesource.com/c/plugins/metrics-reporter-jmx/+/302102
I would like the extra plugins to be tracked via git, so we can tentatively fork some if need be. I haven't quite found an idea solution for that though.
If one feels adventurous, a switch to java 11 can be tried. Maybe the plugins will just work and that will complete this task.