diff --git a/CHANGELOG b/CHANGELOG index 3974c74..31d5bcc 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,20 @@ CHANGELOG ========= +2.4.0 +------ + +* Remove findbugs (using huntbugs instead) +* Restore digraph-dependency-maven-plugin +* Make highwheel-maven-plugin run after compile +* Upgrade kemitix-checkstyle-ruleset-maven-plugin to 2.1.2 +* Upgrade maven-compiler-plugin to 3.6.1 +* Upgrade jacoco-maven-plugin to 0.7.9 +* Upgrade spring-cloud dependency management to Camden.SR5 +* Upgrade spring-platform dependency management to Athens.SR3 +* Update versions in README.md +* General updates in README.md + 2.3.0 ------ diff --git a/README.md b/README.md index 66432b0..8cd30aa 100644 --- a/README.md +++ b/README.md @@ -24,20 +24,21 @@ property|value project.build.sourceEncoding|UTF-8 project.reporting.outputEncoding|UTF-8 kemitix.build.directory|target +lombok|1.16.12 +spring-platform|Athens-SR3 +spring-cloud|Camden.SR5 maven-javadoc-plugin.version|2.10.4 maven-source-plugin.version|3.0.1 maven-gpg-plugin.version|1.6 maven-deploy-plugin.version|2.8.2 -maven-checkstyle-plugin.version|2.17 -checkstyle.version|7.1.1 -sevntu-checkstyle-maven-plugin.version|1.21.0 -kemitix-checkstyle-ruleset.version|1.0.0 -maven-compiler-plugin.version|3.5.1 +kemitix-checkstyle-ruleset.version|2.1.2 +digraph-dependency.version|0.7.0 +maven-compiler-plugin.version|3.6.1 maven-surefire-plugin.version|2.19.1 maven-failsafe-plugin.version|2.19.1 -maven-pmd-plugin.version|3.6 -findbugs-maven-plugin.version|3.0.4 -jacoco-maven-plugin.version|0.7.7.201606060606 +maven-pmd-plugin.version|3.7 +huntbugs.version|0.0.11 +jacoco-maven-plugin.version|0.7.9 highwheel-maven.version|1.2 maven-project-info-reports-plugin.version|2.9 maven-jxr-plugin.version|2.5 @@ -45,30 +46,25 @@ jacoco-class-line-covered-ratio|0.50 jacoco-class-instruction-covered-ratio|0.80 jacoco-class-missed-count-maximum|0 -## Maven Checkstyle Plugin +## Checkstyle -The [Maven Checkstyle Plugin](https://maven.apache.org/plugins/maven-checkstyle-plugin/) -uses the latest version of the Checkstyle library -([Release Notes](http://checkstyle.sourceforge.net/releasenotes.html)) and the -[Sevntu](http://sevntu-checkstyle.github.io/sevntu.checkstyle/) library. +The Checkstyle plugin is configured using the +`kemitix-checkstyle-ruleset-maven-plugin`. -As from version 2.0.0 you no longer provide a `checkstyle.xml` file. Any file you -provide will be ignored unless you re-configure the maven-checkstyle-plugin yourself. - -The ruleset that will be used is defined in -[kemitix-checkstyle-ruleset](https://github.com/kemitix/kemitix-checkstyle-ruleset). -See that project's `README.md` file for details on the ruleset. +The `kemitix-checkstyle-ruleset` provides five levels of checks. The +default is set to `5-complexity`, the most strict. It runs during the +`validate` phase. ### Configuration -Ref [checkstyle:check](https://maven.apache.org/plugins/maven-checkstyle-plugin/check-mojo.html) +Set the property `kemitix-checkstyle-ruleset.level` to one of the +following values to select a less-strict ruleset: -* configLocation: [checkstyle.xml](https://github.com/kemitix/kemitix-checkstyle-ruleset/blob/master/src/main/resources/net/kemitix/checkstyle.xml) -* consoleOutput: true -* encoding: UTF-8 -* failOnViolation: true -* failOnError: true -* linkXRef: true +* 1-layout +* 2-naming +* 3-javadoc +* 4-tweaks +* 5-complexity ## Maven Compiler Plugin @@ -112,20 +108,18 @@ runs the [PMD](http://pmd.sourceforge.net/) code analysis. Runs its [pmd](https://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html) and [cpd](https://maven.apache.org/plugins/maven-pmd-plugin/cpd-mojo.html) goals -during the `verify` phase. +during the `compile` phase. ### Configuration No configuration applied beyond the defaults. -## Findbugs Maven Plugin +## Huntbugs Maven Plugin -The [Findbugs Maven Plugin](http://gleclaire.github.io/findbugs-maven-plugin/) -runs the [Findbugs](http://findbugs.sourceforge.net/factSheet.html) code -analysis. +The [Huntbugs Maven Plugin](https://github.com/amaembo/huntbugs) is a +static code analyser. -Runs its [check](http://gleclaire.github.io/findbugs-maven-plugin/check-mojo.html) -goal during the `verify` phase. +Runs during the `compile` phase. ### Configuration @@ -148,13 +142,17 @@ For each class not excluded the Instructions Covered Ration must be at least Excluded from analysis: * `*Test` - test classes +* `*IT` - integration test classes +* `*Main` - main classes +* `*Application` - application classes +* `*Configuration` - (Spring) configuration classes ## Maven Source Plugin The [Maven Source Plugin](https://maven.apache.org/plugins/maven-source-plugin/) bundles your sources into a jar file ready for deployment. -Runs its [jar-no-fork](http://gleclaire.github.io/findbugs-maven-plugin/check-mojo.html) +Runs its [jar-no-fork](https://maven.apache.org/plugins/maven-source-plugin/jar-no-fork-mojo.html) goal during the `verify` phase. ### Configuration @@ -167,7 +165,7 @@ The [Maven Javadoc Plugin](https://maven.apache.org/plugins/maven-javadoc-plugin generates your html javadocs and bundles them into a jar file ready for deployment. -Runs its [jar-no-fork](http://gleclaire.github.io/findbugs-maven-plugin/check-mojo.html) +Runs its [jar](https://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html) goal during the `verify` phase. ### Configuration @@ -201,7 +199,7 @@ classes. ### Configuration -The plugin will `analyse` the project during the `verify` phase. +The plugin will `analyse` the project during the `compile` phase. ## Digraph Dependency Plugin @@ -210,9 +208,9 @@ generates a DOT file diagram showing the dependencies between packages in a proj ### Configuration -The plugin will generate the `target/digraph.dot` file during the `verify` phase. +The plugin will generate the `target/digraph.dot` file during the `validate` phase. -The plugin will filter to packages within the `net.kemitix` package namespace. +Set the `digraph-dependency.basePackage` property to the root package to graph. # Distribution Management diff --git a/pom.xml b/pom.xml index 5975895..c7e10ce 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ net.kemitix kemitix-parent - 2.3.0 + 2.4.0 pom Kemitix Parent @@ -41,21 +41,26 @@ UTF-8 UTF-8 target - 2.0.4 + 2.1.2 5-complexity 1.16.12 + Athens-SR3 + Camden.SR5 + + 0.7.0 + (UNSET:basePackage) + 2.10.4 3.0.1 1.6 2.8.2 - 3.6.0 + 3.6.1 2.19.1 2.19.1 3.7 - 3.0.4 0.0.11 - 0.7.7.201606060606 + 0.7.9 1.2 2.9 2.5 @@ -79,14 +84,14 @@ io.spring.platform platform-bom - Athens-SR2 + ${spring-platform.version} pom import org.springframework.cloud spring-cloud-dependencies - Camden.SR4 + ${spring-cloud.version} pom import @@ -182,9 +187,6 @@ net.kemitix kemitix-checkstyle-ruleset-maven-plugin ${kemitix-checkstyle-ruleset.version} - - 7.4 - validate @@ -194,6 +196,22 @@ + + net.kemitix + digraph-dependency-maven-plugin + ${digraph-dependency.version} + + ${digraph-dependency.basePackage} + + + + validate + + digraph + + + + org.apache.maven.plugins maven-compiler-plugin @@ -257,28 +275,13 @@ - - org.codehaus.mojo - findbugs-maven-plugin - ${findbugs-maven-plugin.version} - - - check - verify - - check - - - - - one.util huntbugs-maven-plugin ${huntbugs.version} - verify + compile huntbugs @@ -349,7 +352,7 @@ ${highwheel-maven.version} - validate + compile analyse @@ -390,12 +393,6 @@ true - - - org.codehaus.mojo - findbugs-maven-plugin - ${findbugs-maven-plugin.version} -