Skip to content

Commit 5539e5c

Browse files
committed
Bumping versions
1 parent 7bd0e2d commit 5539e5c

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

README.adoc

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,54 @@ Go to `File` -> `Settings` -> `Other settings` -> `Checkstyle`. There click on t
296296
- `checkstyle.additional.suppressions.file` - this variable corresponds to suppressions in your local project. E.g. you're working on `spring-cloud-contract`. Then point to the `project-root/src/checkstyle/checkstyle-suppressions.xml` folder. Example for `spring-cloud-contract` would be: `/home/username/spring-cloud-contract/src/checkstyle/checkstyle-suppressions.xml`.
297297

298298
IMPORTANT: Remember to set the `Scan Scope` to `All sources` since we apply checkstyle rules for production and test sources.
299+
300+
=== Duplicate Finder
301+
302+
Spring Cloud Build brings along the `basepom:duplicate-finder-maven-plugin`, that enables flagging duplicate and conflicting classes and resources on the java classpath.
303+
304+
==== Duplicate Finder configuration
305+
306+
Duplicate finder is *enabled by default* and will run in the `verify` phase of your Maven build, but it will only take effect in your project if you add the `duplicate-finder-maven-plugin` to the `build` section of the projecst's `pom.xml`.
307+
308+
.pom.xml
309+
[source,xml]
310+
----
311+
<build>
312+
<plugins>
313+
<plugin>
314+
<groupId>org.basepom.maven</groupId>
315+
<artifactId>duplicate-finder-maven-plugin</artifactId>
316+
</plugin>
317+
</plugins>
318+
</build>
319+
----
320+
321+
For other properties, we have set defaults as listed in the https://github.com/basepom/duplicate-finder-maven-plugin/wiki[plugin documentation].
322+
323+
You can easily override them but setting the value of the selected property prefixed with `duplicate-finder-maven-plugin`. For example, set `duplicate-finder-maven-plugin.skip` to `true` in order to skip duplicates check in your build.
324+
325+
If you need to add `ignoredClassPatterns` or `ignoredResourcePatterns` to your setup, make sure to add them in the plugin configuration section of your project:
326+
327+
[source,xml]
328+
----
329+
<build>
330+
<plugins>
331+
<plugin>
332+
<groupId>org.basepom.maven</groupId>
333+
<artifactId>duplicate-finder-maven-plugin</artifactId>
334+
<configuration>
335+
<ignoredClassPatterns>
336+
<ignoredClassPattern>org.joda.time.base.BaseDateTime</ignoredClassPattern>
337+
<ignoredClassPattern>.*module-info</ignoredClassPattern>
338+
</ignoredClassPatterns>
339+
<ignoredResourcePatterns>
340+
<ignoredResourcePattern>changelog.txt</ignoredResourcePattern>
341+
</ignoredResourcePatterns>
342+
</configuration>
343+
</plugin>
344+
</plugins>
345+
</build>
346+
347+
348+
----
349+

0 commit comments

Comments
 (0)