-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
org.json implementation used by spring-boot-starter-test clashes with the commonly used one #9630
Comments
Workaround is dependency exclusion:
|
With 1.5.4 there should have been a warning generated in the logs (see #9248). Did it not appear? |
Yes, it appears, now I have noticed it. The ticket you mentioned describes my issue so they could be merged. This "The Software shall be used for Good, not Evil." conflict is a really weird stuff. Spring Boot should at least give an ability to choose the implementation. The Android lib is outdated anyway. |
Thanks for following up. |
NP, but I do not feel that notification about the conflict actually fixes the issue. I have informed the author of the JSON-java: stleary/JSON-java#353 This misconception is to be dealt with, not avoided. |
I don't think there's any misconception here. The dependency that we care about is the
Use of the JSON checker test suite makes no difference. The project's FAQ makes it clear that the licence isn't going to change. The dependency that we use instead, The situation that we're in here is undoubtedly unfortunate, but, until other libraries more away from |
I see. So the long-term solution is to fork and develop the original library or persuade the developer that his position is not acceptable. I just wonder why nobody cares. Thanks anyway. |
Sorry, I feel I have given the wrong link about the RapidJSON. My bad. As long as nothing specific this thread has, you may want to remove it at all. |
spring-boot-starter-test
eventually depends on non-standardorg.json
implementationcom.vaadin.external.google:android-json
which clashes with the commonly usedorg.json:json
.The symptom is exception
when XML.toJSONObject(String) is called inside a test. Production code works fine since does not depend on
spring-boot-starter-test
.It is not possible to accept this and use
com.vaadin.external.google:android-json
implementation in a project because it has different interface and moreover lacks XML convertion functionality. Also, Spring Boot is not an Android framework to have such dependency. Thus, I consider this an bug to be fixed.The bug is reproducible with the latest versions 1.5.2 to 1.5.4.
The text was updated successfully, but these errors were encountered: