spring-projects / spring-boot

Spring Boot
https://spring.io/projects/spring-boot
Apache License 2.0
75.01k stars 40.66k forks source link

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

Closed allurx closed 2 hours ago

allurx commented 3 hours ago

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

wilkinsona commented 2 hours ago

Duplicates #40949.