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

querydsl-apt:jakarta has transitive dependency on javax.inject #3664

Open
OrangeDog opened this issue Jan 24, 2024 · 4 comments
Open

querydsl-apt:jakarta has transitive dependency on javax.inject #3664

OrangeDog opened this issue Jan 24, 2024 · 4 comments
Labels

Comments

@OrangeDog
Copy link

Observed vs. expected behavior

[INFO] +- com.querydsl:querydsl-apt:jar:jakarta:5.0.0:provided
[INFO] |  \- com.querydsl:querydsl-codegen:jar:5.0.0:provided
[INFO] |     +- com.querydsl:codegen-utils:jar:5.0.0:provided
[INFO] |     |  \- org.eclipse.jdt:ecj:jar:3.26.0:provided
[INFO] |     \- javax.inject:javax.inject:jar:1:provided

Should instead be jakarta.inject-api.

Steps to reproduce

<dependency>
  <groupId>com.querydsl</groupId>
  <artifactId>querydsl-apt</artifactId>
  <version>5.0.0</version>
  <classifier>jakarta</classifier>
  <scope>provided</scope>
</dependency>
@OrangeDog OrangeDog added the bug label Jan 24, 2024
@ft0907
Copy link

ft0907 commented Jan 26, 2024

The latest version no longer supports springboot3.x, because springboot3.x uses the jakarta package instead of javax, and the latest version still uses the javax package to implement it. Let’s see if there are other ways to convert or implement it. Anyway, my project is now either Use querydsl, or don’t upgrade springboot3.x

@ft0907
Copy link

ft0907 commented Jan 26, 2024

You can try to see if you can use this method. For details, you can check the answer to the following question.#3651 (comment)

@OrangeDog
Copy link
Author

OrangeDog commented Jan 26, 2024

@ft0907 that is not true. It works fine as long as you add the jakarta classifiers.

This rogue javax dependency does not appear to affect anything.

@danielvion
Copy link

You can check out this fork.

https://github.com/OpenFeign/querydsl

It has full jakarta and hibernate 6 support.

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

No branches or pull requests

3 participants