Skip to content

sbt/sbt-duplicates-finder

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

sbt-duplicates-finder

Build Status

The sbt-duplicates-finder plugin offers utilities to help you find classes or resources that could create conflicts in your classpath.

Adding to your project

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.

1.0.0 changes

With the 1.0.0 release, organizations are package hierarchy changed:

  • Organization moved from org.scala-sbt to com.github.sbt
  • Package moved from com.typesafe.sbt.duplicates to com.github.sbt.duplicates

Usage

> 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.

Settings

reportDuplicatesWithSameContent

This setting, defaulting to false, controls whether classes/resources with the same name but also the same content are reported.

excludePatterns

This setting, defaulting to Seq(^META-INF/.*), allows to exclude filenames matching one of these patterns from the duplicates report.

includeBootClasspath

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.

License

This software is under the Apache 2.0 License.

About

Find classes and resources conflicts in your build

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages