Skip to content

Adding Java21 support in ofbiz trunk code base#1460

Merged
ashishvijaywargiya merged 5 commits into
apache:trunkfrom
ashishvijaywargiya:java21-fixes
Jul 16, 2026
Merged

Adding Java21 support in ofbiz trunk code base#1460
ashishvijaywargiya merged 5 commits into
apache:trunkfrom
ashishvijaywargiya:java21-fixes

Conversation

@ashishvijaywargiya

Copy link
Copy Markdown
Contributor
  1. Added sourceCompatibility/targetCompatibility and javadoc source to 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

ashishvijaywargiya and others added 5 commits July 15, 2026 21:52
…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
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
@ashishvijaywargiya
ashishvijaywargiya merged commit 6103826 into apache:trunk Jul 16, 2026
5 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.

1 participant