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

Switch com.github.jsqlparser:jsqlparser to test scope #1796

Closed
luizleite-hotmart opened this issue May 28, 2024 · 2 comments
Closed

Switch com.github.jsqlparser:jsqlparser to test scope #1796

luizleite-hotmart opened this issue May 28, 2024 · 2 comments
Assignees
Labels
type: bug A general bug

Comments

@luizleite-hotmart
Copy link

If you have both spring-boot-starter-data-r2dbc and spring-boot-starter-data-jpa in the same project, these two libraries in version 3.3 of Spring Boot use com.github.jsqlparser:jsqlparser but in different versions. This causes some methods that were added in version 4.9 to not exist in version 4.6, such as net.sf.jsqlparser.statement.select.Values

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 28, 2024
@mp911de mp911de changed the title Bump com.github.jsqlparser:jsqlparser Switch com.github.jsqlparser:jsqlparser to test scope May 29, 2024
@mp911de mp911de added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels May 29, 2024
@mp911de
Copy link
Member

mp911de commented May 29, 2024

jsqlparser is a test-only dependency, you can safely exclude it on Spring Data JDBC. It should never been a production dependency.

@sombriks
Copy link

hey, thanks for the explanation!
for anyone landing here with similar issue, besides read carefully the related issues, you can add the following dependency explicitly until it gets resolved on next release:

	testImplementation("com.github.jsqlparser", "jsqlparser", "4.9")

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

No branches or pull requests

5 participants