Exclude Transitive Dependencies
You can exclude transitive dependencies from a SBT project by using one of the following strategies.
If you want to exclude a specific transitive dependency, use exclude
:
libraryDependencies += "organization" % "artifact" % "0.0.0" exclude("organization", "artifact")
If you want to exclude multiple transitive dependencies, use excludeAll
instead:
excludeAll(ExclusionRule(organization = "organization"))