Skip to content

Conversation

jsfan3
Copy link
Contributor

@jsfan3 jsfan3 commented Sep 10, 2025

Local builds were compiling this module with -source 8 inherited from the parent’s maven-compiler-plugin configuration, despite the module properties declaring Java 17. This caused errors such as “records are not supported in -source 8” and “text blocks are not supported in -source 8”.

This commit adds an explicit maven-compiler-plugin configuration in the module’s POM to set ${maven.compiler.source}, ensuring Java 17 is used. No functional code changes; build configuration only.

Local builds were compiling this module with -source 8 inherited from the parent’s maven-compiler-plugin configuration, despite the module properties declaring Java 17. This caused errors such as “records are not supported in -source 8” and “text blocks are not supported in -source 8”.

This commit adds an explicit maven-compiler-plugin configuration in the module’s POM to set <release>${maven.compiler.source}</release>, ensuring Java 17 is used. No functional code changes; build configuration only.
@jsfan3 jsfan3 changed the title BAEL-7804: Enforce Java 17 for module build via compiler-plugin override BAEL-7804 Sep 12, 2025
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.

1 participant