Adding Java21 support in ofbiz trunk code base#1460
Merged
ashishvijaywargiya merged 5 commits intoJul 16, 2026
Conversation
…o Java 21 2. Add --add-opens/--enable-native-access JVM args for Tomcat 10.1, Groovy 5, JMockit and Mockito 3. Replace deprecated Locale/Thread APIs (new Locale(...) -> Locale.of(...), Thread.getId() -> threadId()) across framework and application modules 4. Switch log4j-slf4j-impl dependency to the slf4j2 variant 5. Raise Gradle daemon heap settings in gradle.properties
…cess in PR is not working as expected.
This fix can go on for a long run and we can take whatever time we need for switching the project trunk codebase on Java21.
…he default version is kept to java17 in trunk code base. And trunk code base build, run and performed test cases fine with java17 and java21
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.
Added sourceCompatibility/targetCompatibility and javadoc source to Java 21
Add --add-opens/--enable-native-access JVM args for Tomcat 10.1, Groovy 5, JMockit and Mockito
Replace deprecated Locale/Thread APIs (new Locale(...) -> Locale.of(...), Thread.getId() -> threadId()) across framework and application modules
Switch log4j-slf4j-impl dependency to the slf4j2 variant
Raise Gradle daemon heap settings in gradle.properties