Skip to content

MOSIP-45750: Upgrade apitest-commons to Java 25 - #2015

Open
mohanachandran-s wants to merge 2 commits into
mosip:developfrom
mohanachandran-s:java25-upgrade
Open

mohanachandran-s wants to merge 2 commits into
mosip:developfrom
mohanachandran-s:java25-upgrade

Conversation

@mohanachandran-s

@mohanachandran-s mohanachandran-s commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Jira: MOSIP-45750

What

Moves apitest-commons from Java 21 to Java 25.

  • Version becomes 1.8.0-java25-SNAPSHOT, so modules pinned to 1.8.0-SNAPSHOT keep getting Java 21 bytecode and are not affected.
  • maven.compiler.release is 25, with maven-compiler-plugin 3.16.0 using <release>.
  • Lombok is pinned to 1.18.48, because kernel-bom's 1.18.30 crashes javac 25. It is also listed in an explicit annotationProcessorPaths, since JDK 23+ no longer runs processors found on the classpath.
  • Plugins: jar 3.5.1, shade 3.6.2, javadoc 3.12.0, sonar 5.8.0.7211.
  • Shade gets createDependencyReducedPom=false. Without it, shade 3.6.2 installs a reduced POM with 7 dependencies, and consumers lose their transitive dependencies (masterdata failed to compile because of this).

Verification

  • mvn clean install passes on JDK 25.0.5. Every io/mosip/testrig class is class file 69, and the Lombok accessors are generated.
  • The installed POM is byte-identical to the source pom.
  • The consumer apitest-masterdata (companion PR in mosip/admin-services) builds against this version. Its smoke suite on api-internal.released has no PASS->FAIL against develop in any of the 6 languages.
  • OSV check of the bumped coordinates: 0 vulnerabilities.

Known gaps (not in this PR)

  • CI uses mosip/kattu workflows that exist only at master-java21, with java-version 21 hardcoded, so this branch's CI build will fail until a Java 25 kattu ref exists.
  • There is no mosipid JRE 25 base image yet.

Merge order: this PR first, then the admin-services masterdata PR.

Prereg template fix (MOSIP-45785)

The second commit, 876c107, carries the same generateHbsForPrereg fix that goes to develop in a separate PR (MOSIP-45785):

  • residenceStatus is now sent whenever the schema defines it as a simpleType. Before, it was sent only when the schema required it, and without it prereg booking fails.
  • Phone uses $PHONENUMBERFORIDENTITY$ again instead of {{phone}}.

Only pre-registration calls this method. With this commit, prereg's Java 25 change (mosip/pre-registration#1104) is pom-only, and its released smoke run gives the same result as develop for every case: 121 cases, 110 passed, 11 already failing. This partly reverts 26a349d (MOSIP-37651) and eedd78d (MOSIP-45003), for prereg only.

🤖 Generated with Claude Code

- Version 1.8.0-java25-SNAPSHOT, so modules on 1.8.0-SNAPSHOT (Java 21) are unaffected
- maven.compiler.release 25; maven-compiler-plugin 3.16.0 with <release>
- Pin Lombok 1.18.48 (kernel-bom's 1.18.30 crashes javac 25) plus an explicit
  annotationProcessorPaths (JDK 23+ no longer runs classpath processors)
- jar 3.5.1, shade 3.6.2, javadoc 3.12.0, sonar 5.8.0.7211
- shade createDependencyReducedPom=false: shade 3.6.2 otherwise installs a
  reduced POM (7 deps) and consumers lose the transitive dependencies

CI (kattu master-java21) and Docker images stay on Java 21 until a Java 25 ref exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mohanachandran S <mohanachandran.s@technoforte.co.in>
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: c71daf17-3dbf-4d52-9e31-a10b4290a6ea
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ckm007

ckm007 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked PR

@ckm007

ckm007 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked PR

@ckm007

ckm007 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked PR

…eg template

generateHbsForPrereg (schema-driven since MOSIP-37651) changed two things
pre-registration depends on:
- residenceStatus was only added when the schema lists it as required.
  Without it pre-registration keeps the application incomplete and booking
  fails (PRG_BOOK_RCI_036). Add it whenever the schema defines it as a
  simpleType, even when not required.
- phone was "{{phone}}", so the YAML literal was sent while the prereg
  scripts store the number they generate for $PHONENUMBERFORIDENTITY$ and
  compare responses against it. Use $PHONENUMBERFORIDENTITY$ again (plain
  and TaggedListType branches), as commons 1.6 did.

Only pre-registration calls generateHbsForPrereg. Verified with prereg smoke
on api-internal.released (JDK 25 build of this change): 121 cases identical
to the commons 1.6.0 baseline, 110 passed, 11 pre-existing failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mohanachandran S <mohanachandran.s@technoforte.co.in>
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.

2 participants