https://github.com/todesking/sbt-conflict-classes
https://github.com/todesking/sbt-conflict-classes
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/todesking/sbt-conflict-classes
- Owner: todesking
- License: mit
- Created: 2014-07-23T07:35:12.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T03:06:19.000Z (almost 9 years ago)
- Last Synced: 2025-05-05T14:42:37.752Z (about 1 year ago)
- Language: Scala
- Size: 16.6 KB
- Stars: 15
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sbt-conflict-classes: List conflict classes in classpath [](http://travis-ci.org/todesking/sbt-conflict-classes)
## Usage
```scala
// project/plugins.sbt
resolvers += "com.todesking" at "http://todesking.github.io/mvn/"
addSbtPlugin("com.todesking" %% "sbt-conflict-classes" % "0.0.2")
```
```scala
// build.sbt
// Exclude from conflict detection(match with startsWith)(Optional)
conflictClassExcludes ++= Seq(
"com/todesking/example/DuplicateClass.class",
"com/todesking/example/dups/"
)
```
```
$ sbt compile:conflict-classes # show compile-time conflicts
$ sbt test:conflict-classes # show test-time conflicts
$ sbt runtime:conflict-classes # show runtime conflicts
```
## Example output
```
$ cd example
$ sbt conflict-classes
...
[info] Listing conflict classes:
[info] Found conflict classes in:
[info] xxx/.ivy2/cache/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.7.0.jar
[info] xxx/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar
[info] with classes:
[info] org/apache/commons/collections/ArrayStack.class
[info] org/apache/commons/collections/Buffer.class
[info] org/apache/commons/collections/BufferUnderflowException.class
[info] org/apache/commons/collections/FastHashMap$1.class
[info] org/apache/commons/collections/FastHashMap$CollectionView$CollectionViewIterator.class
[info] org/apache/commons/collections/FastHashMap$CollectionView.class
[info] org/apache/commons/collections/FastHashMap$EntrySet.class
[info] org/apache/commons/collections/FastHashMap$KeySet.class
[info] org/apache/commons/collections/FastHashMap$Values.class
[info] org/apache/commons/collections/FastHashMap.class
```