Move to Java 11 for building XWiki

Hi devs,

I’d like to move to Java 11 to build XWiki on our CI (ie to modify https://github.com/xwiki/xwiki-docker-build/blob/master/build/Dockerfile#L31).

The rationale is:

Note: It won’t change that the source and target will remain Java 8 until we change that.

WDYT?

Thanks

Hi,

I’m +1 that we start checking we can. But I’ll do it gradually, for example by putting an agent off and trying to perform a build on it with Java 11 before changing it on the whole CI.

Now note that even if you change https://github.com/xwiki/xwiki-docker-build/blob/master/build/Dockerfile#L31 right now, it won’t impact our build since we’re still not using the latest image because of https://jira.xwiki.org/browse/XINFRA-312.

I’ll do it locally, building XWiki with Java 11.

There are some known issues that we need to fix for a java 11 build to work:

https://jira.xwiki.org/issues/?jql=text%20~%20"java%2011"%20and%20resolution%20%3D%20Unresolved%20and%20labels%20%3D%20java%20