Skip to content

Update test module to Java 21 and migrate to Jakarta Servlet API#8

Open
dillonvargo wants to merge 1 commit into
masterfrom
devin/1769090582-update-test-module-java21
Open

Update test module to Java 21 and migrate to Jakarta Servlet API#8
dillonvargo wants to merge 1 commit into
masterfrom
devin/1769090582-update-test-module-java21

Conversation

@dillonvargo

Copy link
Copy Markdown
Owner

Description of what I changed

Updated the test module to use Java 21 and migrated from javax.servlet to Jakarta Servlet API to align with the main project's configuration:

  • Changed javaCompilerVersion property from 1.8 to 21 in test-module/pom.xml
  • Replaced javax.servlet-api:4.0.1 dependency with jakarta.servlet-api:6.1.0 in test-module/pom.xml
  • Updated the servlet dependency in test-module/omod/pom.xml from javax.servlet-api to jakarta.servlet-api

The main project already uses Java 21, Spring Framework 6.x, Hibernate 6.x, and Jakarta Servlet 6.1.0. This change ensures the test module is consistent with the rest of the codebase and eliminates the use of Java 1.8 which reached end-of-life in 2022.

Issue I worked on

see https://issues.openmrs.org/browse/TRUNK-

Checklist: I completed these to help reviewers :)

  • My IDE is configured to follow the code style of this project.

  • I have added tests to cover my changes. (If you refactored
    existing code that was well tested you do not have to add tests)

  • I ran mvn clean package right before creating this pull request and
    added all formatting changes to my commit.

  • All new and existing tests passed.

  • My pull request is based on the latest changes of the master branch.


Reviewer Notes

Key areas to verify:

  1. Ensure no Java source files in the test module have javax.servlet imports that would need updating
  2. Confirm Jakarta Servlet 6.1.0 is compatible with the test module's usage patterns

Requested by: Dillon Vargo (@dillonvargo)
Link to Devin run: https://app.devin.ai/sessions/bd1bb8bc23f148d4b7d1dd3a1ebba66e

- Update javaCompilerVersion from 1.8 to 21 in test-module/pom.xml
- Replace javax.servlet-api:4.0.1 with jakarta.servlet-api:6.1.0 in test-module/pom.xml
- Replace javax.servlet-api with jakarta.servlet-api in test-module/omod/pom.xml

This aligns the test module with the main project's Java 21 configuration
and Jakarta EE migration.

Co-Authored-By: Dillon Vargo <dillonvargo@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

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