Skip to content

docs: correct the documented minimum Java version - #137

Open
aymenmehri wants to merge 1 commit into
zitadel:mainfrom
aymenmehri:docs/fix-minimum-java-version
Open

docs: correct the documented minimum Java version#137
aymenmehri wants to merge 1 commit into
zitadel:mainfrom
aymenmehri:docs/fix-minimum-java-version

Conversation

@aymenmehri

Copy link
Copy Markdown

Description

Corrects the documented minimum Java version and the one build setting that was inconsistent with it.

  • README.md: minimum requirement Java 8Java 11.
  • pom.xml: maven-javadoc-plugin <source>1.8</source><source>11</source>, aligning it with the compiler's <release>11</release>.
  • README.md: installation snippet 4.1.04.1.2 to match the latest release.

Related Issue

Closes #136

Motivation and Context

The README tells users that Java 8 or higher is enough, but the project has not been buildable or consumable on Java 8 for some time:

  • pom.xml sets maven-compiler-plugin to <release>11</release>, so the published artifact is class file major version 55.
  • .github/workflows/integration.yml only ever runs the matrix against Java 11, 17 and 21.

A user on Java 8 therefore hits a compilation failure with no hint that the documented requirement is stale. The javadoc plugin was still pinned to <source>1.8</source>, a leftover from the same migration.

No supported configuration changes here — this documents what the build already enforces.

A note on the 4.1.04.1.2 bump in the installation snippet: nothing in .releaserc.json updates the README, so this number appears to drift manually between releases. Happy to drop that hunk if you would rather keep it out of a docs fix, or to wire the README into the release config in a separate PR if that is preferable.

How Has This Been Tested?

Locally on Temurin 21.0.11 / Maven 3.9.16:

  • mvn spotless:check test — BUILD SUCCESS, 18/18 tests pass, no formatting violations.
  • mvn javadoc:javadoc — BUILD SUCCESS with the updated <source>11</source>.

Documentation:

The README change is itself the documentation update.

Checklist:

  • I have updated the documentation accordingly.
  • I have assigned the correct milestone or created one if non-existent.
  • I have correctly labeled this pull request.
  • I have linked the corresponding issue in this description.
  • I have requested a review from at least 2 reviewers
  • I have checked the base branch of this pull request
  • I have checked my code for any possible security vulnerabilities

The README states that Java 8 or higher is required, but the project has
not been buildable on Java 8 for some time: maven-compiler-plugin is
configured with <release>11</release>, and the integration workflow only
ever exercises Java 11, 17 and 21. A user on Java 8 hits a compilation
failure with no indication that the documented requirement is wrong.

Correct the stated minimum to Java 11 and align the javadoc plugin, which
was still pinned to <source>1.8</source> while the compiler targeted 11.

Also bump the version in the installation snippet from 4.1.0 to 4.1.2 to
match the latest release.
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.

README documents Java 8 as the minimum requirement, but the build targets Java 11

1 participant