ARTEMIS-2109: enable building Artemis on JDK 11+#3179
Merged
asfgit merged 7 commits intoapache:masterfrom Jun 15, 2020
Merged
Conversation
…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+.
Member
Author
|
Added missing ARTEMIS-2109 ref to the title. |
This was referenced Jun 15, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.