Open GoogleCodeExporter opened 8 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
annoying++
For android builds using gradle:
compile group: 'com.googlecode.json-simple', name: 'json-simple', version:
'1.1.1', transitive: false
Original comment by hemisf...@gmail.com
on 30 Jul 2015 at 9:46
Original issue reported on code.google.com by
colin...@gmail.com
on 23 Sep 2013 at 2:15