Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update to Micronaut 4 #488

Open
tobiasschaefer opened this issue Jul 28, 2023 · 8 comments
Open

Update to Micronaut 4 #488

tobiasschaefer opened this issue Jul 28, 2023 · 8 comments

Comments

@tobiasschaefer
Copy link
Collaborator

tobiasschaefer commented Jul 28, 2023

We will probably need to Update Micronaut 4 and Camunda 7.20 together because both switched from javax to jakarta namespace. We will also need to update to Java 17.

@tobiasschaefer
Copy link
Collaborator Author

Here is a PR with work-in-progress: #487

This might help:

@nyuuyn
Copy link

nyuuyn commented Jul 28, 2023

A fork working on this issue from the branch of @tobiasschaefer is here

@tobiasschaefer
Copy link
Collaborator Author

tobiasschaefer commented Oct 27, 2023

See also https://micronaut-projects.github.io/micronaut-servlet/latest/guide/#versioning which means we probably also need to update to Camunda 7.20 which switches to jakarta.servlet.

@tobiasschaefer
Copy link
Collaborator Author

We've updated to Camunda 7.20 using the non -jakarta dependencies. We now only need to update Micronaut to version 4.x

@amardeep2006
Copy link

@tobiasschaefer Thanks for this awesome project. Is this possible to consider 4.x.x now as there is no patches released for version 3 since Mar 23, 2024.

@tobiasschaefer
Copy link
Collaborator Author

tobiasschaefer commented Aug 27, 2024

Hi @amardeep2006 :
thanks for your comment.

There is the PR #487 but updating is harder than expected.

Feel free to contribute by using the PR as a basis and creating your own. If all tests are green and it looks good, I'd be happy to approve it.

How are you using this integration project? Is it running on production for you?

@amardeep2006
Copy link

I will have a look on PR. Micronaut is new for me as I have worked in Springboot mostly in past.
We are using Springboot based solution in production and looking for alternative that offers Native compilation.

@tobiasschaefer
Copy link
Collaborator Author

@amardeep2006 : please note:

  • I actually didn't manage to get a project using this integration project natively compiled with GraalVM. The problem is that it embeds the Camunda Process Engine and this together with MyBatis (used for data persistence) makes use of reflection. This is a challenge but probably solvable
  • Spring Boot also supports native complilation now. However, you will probably run into similar challenges as mentioned in the previous bullet point
  • The Camunda External Task Client for Micronaut actually works with native images, see https://github.com/camunda-community-hub/micronaut-camunda-external-client?tab=readme-ov-file#graalvm.

Hope that helps

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants