Repository navigation
chore: test Java 21 and 25 in CI and replace JDK 8 Doclava. - #1262
Open
lahirumaramba wants to merge 4 commits into
Open
lahirumaramba wants to merge 4 commits into
lahirumaramba wants to merge 4 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the project's Checkstyle configuration, upgrades the maven-checkstyle-plugin to version 3.6.0, and migrates the Doclava Javadoc generation setup to support JDK 17 or higher. It also includes formatting and style adjustments across various Java source and test files to comply with the updated Checkstyle rules. Feedback on these changes highlights two issues in pom.xml: the omission of the -J-Xmx1024m memory limit option during the migration to , which could cause OutOfMemoryError during Javadoc generation, and an overly broad replacement token href='reference' that should be constrained with a trailing slash to prevent accidental matches.
This branch has not been deployed
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.
PR checks currently stop at Java 17 because
maven-checkstyle-plugin2.17 fails with reflection errors on JDK 21+, and artifact packaging and reference doc generation rely oncom.google.doclava:doclava:1.0.6, which uses Javadoc APIs removed after JDK 8.This PR upgrades
maven-checkstyle-pluginto 3.6.0, adds Java 21 and Java 25 to the GitHub Actions CI matrix, switches Maven Central Javadoc packaging to the standardmaven-javadoc-plugindoclet, and updates thedevsite-apidocsprofile to use a JDK 17+ compatible Doclava doclet JAR. Compiled SDK bytecode remains at Java 8.Technical Details
pom.xml,checkstyle.xml): Upgradesmaven-checkstyle-pluginfrom2.17to3.6.0(Checkstyle9.3, compatible across JDK 8 through JDK 25), migratesLineLengthandSuppressionCommentFilterto Checkstyle 9 module hierarchy, alignsRightCurlyandWhitespaceAroundwithgoogle_checks.xml, and fixes malformed@seeJavadoc tags and continuation indentation flagged by Checkstyle 9.3..github/workflows/ci.yml): Expandsjava-versionmatrix from[8, 11, 17]to[8, 11, 17, 21, 25].pom.xml): Replacesdoclava:1.0.6inattach-javadocswith standardmaven-javadoc-plugin, excluding internal packages (*.internaland internaldatabasesubpackages) and registering@hideas a custom ignored tag.pom.xml,CONTRIBUTING.md): Updatesdevsite-apidocsto accept-Ddoclava.jarwith JDK 17+--add-exportsflags,sourceFileIncludes, anddisableNoFonts.