The sbt-duplicates-finder plugin offers utilities to help you find classes or resources that could create conflicts in your classpath.
Add the following line to your project/plugins.sbt:
addSbtPlugin("com.github.sbt" % "sbt-duplicates-finder" % "1.0.0")
Since sbt-duplicates-finder is an AutoPlugin, it will be automatically available to your projects.
With the 1.0.0 release, organizations are package hierarchy changed:
- Organization moved from
org.scala-sbttocom.github.sbt - Package moved from
com.typesafe.sbt.duplicatestocom.github.sbt.duplicates
> checkDuplicates
List all resources and classes conflicts found (searching in the project's dependencies and own classes).
> checkDuplicatesTest
Same as checkDuplicates, but fails the build if duplicates classes or resources are found.
This setting, defaulting to false, controls whether classes/resources with the same name but also the
same content are reported.
This setting, defaulting to Seq(^META-INF/.*), allows to exclude filenames matching one of these patterns from the duplicates report.
This setting defaulting to false, allows to include the boot classpath in the search for duplicates. This allows to detect classes that conflict with JDK classes.
This software is under the Apache 2.0 License.