diff --git a/README.adoc b/README.adoc index ac0a4bc5..910e42c7 100644 --- a/README.adoc +++ b/README.adoc @@ -227,6 +227,57 @@ Go to `File` -> `Settings` -> `Other settings` -> `Checkstyle`. There click on t IMPORTANT: Remember to set the `Scan Scope` to `All sources` since we apply checkstyle rules for production and test sources. +=== Duplicate Finder + +Spring Cloud Build brings along the `basepom:duplicate-finder-maven-plugin`, that enables flagging duplicate and conflicting classes and resources on the java classpath. + +==== Duplicate Finder configuration + +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`. + +.pom.xml +[source,xml] +---- + + + + org.basepom.maven + duplicate-finder-maven-plugin + + + +---- + +For other properties, we have set defaults as listed in the https://github.com/basepom/duplicate-finder-maven-plugin/wiki[plugin documentation]. + +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. + +If you need to add `ignoredClassPatterns` or `ignoredResourcePatterns` to your setup, make sure to add them in the plugin configuration section of your project: + +[source,xml] +---- + + + + org.basepom.maven + duplicate-finder-maven-plugin + + + org.joda.time.base.BaseDateTime + .*module-info + + + changelog.txt + + + + + + + +---- + + == Flattening the POMs To avoid propagating build setup that is required to build a Spring Cloud project, we're using the maven flatten plugin. It has the advantage of letting you use whatever features you need while publishing "clean" pom to the repository. diff --git a/docs/pom.xml b/docs/pom.xml index e09b7da2..17cdb3c7 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -10,7 +10,7 @@ org.springframework.cloud spring-cloud-build - 3.0.5-SNAPSHOT + 3.0.5 spring-cloud-build diff --git a/pom.xml b/pom.xml index 02e60797..35045660 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.springframework.cloud spring-cloud-build - 3.0.5-SNAPSHOT + 3.0.5 pom Spring Cloud Parent Spring Cloud parent pom, managing plugins and dependencies for Spring @@ -28,8 +28,8 @@ ${java.version} ${basedir} ${project.artifactId} - 2.4.10 - 3.0.5-SNAPSHOT + 2.4.13 + 3.0.5 ${project.build.directory}/build-docs ${project.build.directory}/build-docs-classes ${project.build.directory}/refdocs/ diff --git a/spring-cloud-build-dependencies/pom.xml b/spring-cloud-build-dependencies/pom.xml index ddf654fc..8f48d854 100644 --- a/spring-cloud-build-dependencies/pom.xml +++ b/spring-cloud-build-dependencies/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.springframework.cloud spring-cloud-build-dependencies - 3.0.5-SNAPSHOT + 3.0.5 spring-cloud-build-dependencies pom Spring Cloud Build Dependencies: an internal BOM for use with Spring @@ -14,12 +14,12 @@ org.springframework.boot spring-boot-dependencies - 2.4.10 + 2.4.13 UTF-8 - 2.4.10 + 2.4.13 diff --git a/spring-cloud-build-tools/pom.xml b/spring-cloud-build-tools/pom.xml index 094fcfc3..32eed2d1 100644 --- a/spring-cloud-build-tools/pom.xml +++ b/spring-cloud-build-tools/pom.xml @@ -10,7 +10,7 @@ org.springframework.cloud spring-cloud-build - 3.0.5-SNAPSHOT + 3.0.5 diff --git a/spring-cloud-dependencies-parent/pom.xml b/spring-cloud-dependencies-parent/pom.xml index 6fbfe7d5..6f1adb87 100644 --- a/spring-cloud-dependencies-parent/pom.xml +++ b/spring-cloud-dependencies-parent/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 org.springframework.cloud - 3.0.5-SNAPSHOT + 3.0.5 spring-cloud-dependencies-parent pom spring-cloud-dependencies-parent