Skip to content

Build with JDK 21, keep Java 11 bytecode - #290

Merged
KosherJava merged 1 commit into
KosherJava:masterfrom
elijulian:build-jdk-21-release-11
Oct 21, 2026
Merged

KosherJava merged 1 commit into
KosherJava:masterfrom
elijulian:build-jdk-21-release-11

Conversation

@elijulian

Copy link
Copy Markdown
Contributor

Summary

  • Require JDK 21 for builds (enforcer + CI) so {@snippet} Javadoc generates correctly
  • Keep --release 11 bytecode and Javadoc source 11 (API links to Java 11)
  • Remove invalid lang attributes that doclint rejects

Test plan

  • ./mvnw clean package on JDK 21
  • Confirm class major version is 55 (Java 11)
  • Confirm Javadoc jar includes rendered snippets

Require JDK 21 for the Maven toolchain so {@snippet} Javadoc works, compile with --release 11 for runtime compatibility, and drop doclint-invalid lang attributes.
@KosherJava
KosherJava merged commit 996f94e into KosherJava:master Oct 21, 2026
3 checks passed
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