Find duplicate classes on the classpath

Apache 2.0

Detects classes that appear in multiple dependencies on the classpath. This is similar to what the Maven duplicate-finder-maven-plugin does. Duplicate classes can cause runtime issues when different versions of the same class are loaded.

org.openrewrite.java.dependencies.search.FindDuplicateClasses
mod run . --recipe=org.openrewrite.java.dependencies.search.FindDuplicateClasses

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.