Fix build on modern JDKs by bumping Maven compiler level to 8#113
Open
gupta-8 wants to merge 1 commit intoLaurieWired:mainfrom
Open
Fix build on modern JDKs by bumping Maven compiler level to 8#113gupta-8 wants to merge 1 commit intoLaurieWired:mainfrom
gupta-8 wants to merge 1 commit intoLaurieWired:mainfrom
Conversation
Fixes build failure on modern JDKs where Maven defaults (or project config) compile with -source 5, which is no longer supported. This change sets maven.compiler.source/target to 8+ to restore mvn package compatibility.
bethington
approved these changes
Feb 11, 2026
bethington
left a comment
There was a problem hiding this comment.
LGTM! Fixes build on modern JDKs. Simple change.
This was referenced Feb 11, 2026
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.
Fix build failure on modern JDKs
Problem
Building this project with modern Java versions fails with the following error:
This happens because the
pom.xmldoes not explicitly set a Java compiler level, causing Maven to fall back to an unsupported default on newer JDKs.Solution
This PR explicitly sets the Maven compiler configuration:
maven.compiler.source = 8maven.compiler.target = 8This restores compatibility with modern JDKs while keeping bytecode compatible with older runtimes.
Why Java 8
Scope of Change
Related Issue
[ERROR] Source option 5 is no longer supported. Use 8 or later.& workaround #99