Skip to content

Support builds with jdk17 and newer #3071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: integration
Choose a base branch
from

Conversation

ddanielr
Copy link
Collaborator

Re-based branch of changes from #2609.

Moved the original code to a branch on the datawave repo to allow running of the github actions.

@ddanielr ddanielr force-pushed the feature/ctubbsii-support-builds-with-jdk17-and-newer branch 2 times, most recently from 4e9b436 to e6fdd9d Compare July 30, 2025 01:27
ctubbsii and others added 6 commits July 30, 2025 01:41
POM changes:

* Add maven.compiler.release option to force correct cross-compilation
  to Java 11 when building with a JDK newer than 11, such as JDK 17
* Remove unnecessary java source, target, and encoding config from
  plugins when those are already specified by properties
* Also fix the license name for Apache-2.0 (the recommended name is the
  SPDX name) and drop .txt from the license URL
* Remove redundant items in POMs
* Update spotbugs-maven-plugin so it works with newer JDKs
* Configure javadoc doclint to 'all,-missing' to prevent noise from
  missing javadocs

Other build changes:

* Update GitHub Actions to test build with JDK 17

Code changes:

* Fix spotbugs issues regarding unnecessary boxing/unboxing primitives
* Fix javadoc headers and html conventions for more strict enforcement
  on newer JDKs
* Fix javadoc issues about the use of uppercase header elements, which
  breaks the standard conventions of html5 that carried over from XHTML
  days, which was case-sensitive (and because uppercase looks ugly)
* Also fix a few other places where uppercase html5 was used, and remove
  an out-of-place closing paragraph element (that also used uppercase)
* Demote `<h1>` tags to `<h2>` in javadoc comments because javadoc
  reserves `<h1>` for its own generated headers
Adds minor updates to java documentation.
Updates log message.
Removes deprecated method use.
Fixes casting statments
@ddanielr ddanielr force-pushed the feature/ctubbsii-support-builds-with-jdk17-and-newer branch from e6fdd9d to e15b9d3 Compare July 30, 2025 01:42
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.

2 participants