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 xwiki-docker-build/build/Dockerfile at master · xwiki/xwiki-docker-build · GitHub).

The rationale is:

  • SonarCloud is going to stop supporting Java8 in October (I received an email about it pointing to SonarCloud).
  • It’s good that we start validating that we build on Java 11.

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 xwiki-docker-build/build/Dockerfile at master · xwiki/xwiki-docker-build · GitHub right now, it won’t impact our build since we’re still not using the latest image because of Loading....

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