Skip to content

spring-boot-starter-test's dependency on jsonassert causes org.json conflicts in modular Java projects #42898

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

Closed
allurx opened this issue Oct 26, 2024 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@allurx
Copy link

allurx commented Oct 26, 2024

I'm encountering an issue with spring-boot-starter-test when using it in a modular Java project (Java 9+). Specifically, the transitive dependency on jsonassert includes android-json, which provides an org.json package that conflicts with the org.json package in jsonassert.This issue results in compilation errors when using module-info.java.

Issue Details

  • Spring Boot Version: 3.3.5
  • Dependency Causing Conflict: org.skyscreamer:jsonassertcom.vaadin.external.google:android-json:0.0.20131108.vaadin1
  • Module System: Java 9+ with module-info.java
    Since spring-boot-starter-test includes jsonassert as a transitive dependency, and jsonassert relies on android-json (which includes org.json), this leads to duplicate org.json packages in modular projects, which Java's module system does not allow.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 26, 2024
@wilkinsona
Copy link
Member

Duplicates #40949.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2024
@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants