Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update the project to use jakarta namespace #66

Closed
zeppelinux opened this issue May 3, 2023 · 2 comments
Closed

Update the project to use jakarta namespace #66

zeppelinux opened this issue May 3, 2023 · 2 comments
Assignees

Comments

@zeppelinux
Copy link

I'm trying to use Square SDK in my Quarkus 3 project. Because of Quarkus 3 is compiled for jakarta namespace and Square SDK is using apimatic core, which uses javax - it fails on:

Caused by: java.lang.ClassNotFoundException: javax.json.JsonException
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:516)
        at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:466)

To reproduce:

  1. Check out this project https://github.com/zeppelinux/square-okhttp-problem
  2. mvn clean compile quarkus:dev
  3. Navigate to http://localhost:8080/hello

To resolve it there is a need to update the apimatic/core-lib-java to use jakarta instead of javax.

@zeppelinux
Copy link
Author

I forked it and ported to jakarta here https://github.com/zeppelinux/core-lib-java/tree/feature/port-to-jakarta
Tests are run green from IDE, but fail from cmd line on some jacoco class version exception.

@hamzashoukat94
Copy link
Contributor

hamzashoukat94 commented Jun 6, 2023

Hi @zeppelinux
Thanks for opening this issue. I appreciate that you have also suggested a workaround for others!
Switching from javax to jakarta isn't on the immediate roadmap for this library. We'll let you know once it is prioritized.
Thanks!

@usamabintariq usamabintariq closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2023
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

No branches or pull requests

3 participants