Make the Sonatype Snapshot repository available to your build system. In Maven, this means adding the following snippet within the <project> section of your pom.xml.
<repositories> <repository> <id>Sonatype Snapshots</id> <url>http://oss.sonatype.org/content/repositories/snapshots</url> </repository> </repositories>
Next add the Mutability Detector dependency to your pom.xml with this snippet:
<dependency> <groupId>org.mutabilitydetector</groupId> <artifactId>MutabilityDetector</artifactId> <version>0.6-SNAPSHOT</version> <scope>test</scope> </dependency>
For other build systems (Gradle, Ivy, etc.) the pertinent bits of information for the dependency are:
Group ID | Artifact ID | Version |
org.mutabilitydetector | MutabilityDetector | 0.6-SNAPSHOT |
Some points:
- Source code is not available through Maven, working on fixing this. In the meantime, you can checkout or browse the source, details available at the Googlecode project page.
- You may get surprising results with the current snapshot, as described in this issue
- The packaged jar file includes dependencies (e.g. ASM, Classpath Explorer), so there may be some issues putting this jar on your classpath. Working on fixing this also.
No comments:
Post a Comment