Skip to content

Commit

Permalink
feat: add ban duplicate classes rule (#126)
Browse files Browse the repository at this point in the history
* feat: add ban duplicate classes rule

* feat: add extra enforcer dep
  • Loading branch information
stephaniewang526 committed Apr 7, 2020
1 parent a681536 commit e38a7cc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pom.xml
Expand Up @@ -101,6 +101,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -259,6 +266,14 @@
<version>[1.7,)</version>
</requireJavaVersion>
<requireUpperBoundDeps/>
<banDuplicateClasses>
<scopes>
<scope>compile</scope>
<scope>provided</scope>
</scopes>
<findAllDuplicates>true</findAllDuplicates>
<ignoreWhenIdentical>true</ignoreWhenIdentical>
</banDuplicateClasses>
</rules>
</configuration>
</execution>
Expand Down

0 comments on commit e38a7cc

Please sign in to comment.