Open GoogleCodeExporter opened 9 years ago
This is a one line fix, as the reporter has noted:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<!-- FIXME --> <scope>test</scope>
</dependency>
There is no reason to include junit as a runtime dependency. It also throws off
the Android linker. To work around, you can use exclusions in your project's
POM:
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
<!-- maven note: must manually exclude all ancestors
see http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html -->
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
Original comment by xcolw...@gmail.com
on 10 Feb 2014 at 10:09
Hi problem is the same with Ivy
Dependency must be like :
<dependencies>
<dependency org="junit" name="junit" rev="4.10" force="true" conf="test->runtime(*),master(*)"/>
</dependencies>
Original comment by mart...@gmail.com
on 13 Mar 2014 at 1:50
Could you try to fix that little issue soon, perhaps in a 1.1.2 version ? It is
annoying for your users.
Original comment by aheritier
on 11 May 2014 at 8:49
Any chance we could please get a release of this to Maven Central? The JUnit library being included in shaded libraries is unnecessary bloat and can generating annoying classpath overlap warnings.
Any news on getting this release out?
I just want to note that this issue has been addressed in my fork (which is fully compatible with this library if you're using java 7+). You can find more details about it here: https://cliftonlabs.github.io/json-simple/
Hello would it be possible to release a new version of this library? The code is fixed but there is no artifact of json-simple available without junit in the dependencies. Thanks
@xbcbqc https://cliftonlabs.github.io/json-simple/ you can use this release for json-simple without junit in in your project.
Ok thanks. I need to communicate with the other project because it's a transitive lib in my dependencies.
Sure thing, just a heads up: you can use version 2.3.1 of the one I linked to be fully backwards compatible with this project.
Original issue reported on code.google.com by
colin...@gmail.com
on 23 Sep 2013 at 2:15