Skip to content

ARTEMIS-2109: enable building Artemis on JDK 11+#3179

Merged
asfgit merged 7 commits intoapache:masterfrom
gemmellr:java11_javadoc_etc
Jun 15, 2020
Merged

ARTEMIS-2109: enable building Artemis on JDK 11+#3179
asfgit merged 7 commits intoapache:masterfrom
gemmellr:java11_javadoc_etc

Conversation

@gemmellr
Copy link
Member

This allows building on JDK11+, and passes the current Travis CI job tasks on JDK 8, 11, and 14 (Travis config extended to add those).

Notes:
This incorporates Emmanuel's changes from #3161 as well as various additions from me.

The build targets 8 when using 8, which is still required to be used for releases, however it targets Java 11 when using Java 11+. This is because the '--release 8' compiler config isnt usable due to use of things like Unsafe in the codebase. Equally, just using --target 1.8 equivalent config while building with JDK11+ still wouldnt produce bytecode that works on 8 due to using the 11 signatures. Not unless we modify the source with type casting etc to force it to that is.

I think this is in shape to be merged and can then be iterated over time to improve rather than it continuing along in a branch any longer, hence the PR.

ehsavoie and others added 7 commits June 11, 2020 18:50
…ove superfluous plugin versions, update to 3.0.1 javadoc plugin

Using 3.0.1 like the current apache parent pom [not being used], and also as newer ones break build.
…und from apache#2720

updated to only cause a change if the generated schema element found isnt prefixed, i.e modifies xsd only when needed and not all the time.
…s, at least for now, to avoid updating hundreds of poms. Allows building on 11+
…ther examples, newest JDKs no longer target 1.6. Fix SSL example. Allows building on JDK 14+.
@gemmellr gemmellr changed the title enable building Artemis on JDK 11+ ARTEMIS-2109: enable building Artemis on JDK 11+ Jun 11, 2020
@gemmellr
Copy link
Member Author

Added missing ARTEMIS-2109 ref to the title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants