From d6b6e50fd683205a7e8d6c066687b90fd7d32ce7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 15 Jan 2017 15:08:03 +0000 Subject: [PATCH 01/16] pom.xml: version set to 2.4.0-SNAPSHOT --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5975895..dd2b663 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ net.kemitix kemitix-parent - 2.3.0 + 2.4.0-SNAPSHOT pom Kemitix Parent From bff18a5b8f2230ebe0d7290980d1743aac44ba46 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 18 Jan 2017 11:59:27 +0000 Subject: [PATCH 02/16] pom.xml: remove the findbugs plugin Replaced by Huntbugs --- README.md | 12 +++++------- pom.xml | 24 +----------------------- 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 66432b0..f8808c4 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ maven-compiler-plugin.version|3.5.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 +huntbugs.version|0.0.11 jacoco-maven-plugin.version|0.7.7.201606060606 highwheel-maven.version|1.2 maven-project-info-reports-plugin.version|2.9 @@ -118,14 +118,12 @@ during the `verify` phase. 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 diff --git a/pom.xml b/pom.xml index dd2b663..d98110b 100644 --- a/pom.xml +++ b/pom.xml @@ -53,7 +53,6 @@ 2.19.1 2.19.1 3.7 - 3.0.4 0.0.11 0.7.7.201606060606 1.2 @@ -257,28 +256,13 @@ - - org.codehaus.mojo - findbugs-maven-plugin - ${findbugs-maven-plugin.version} - - - check - verify - - check - - - - - one.util huntbugs-maven-plugin ${huntbugs.version} - verify + compile huntbugs @@ -390,12 +374,6 @@ true - - - org.codehaus.mojo - findbugs-maven-plugin - ${findbugs-maven-plugin.version} - From 22c3cbc9aca91bf4f67060f0865e416b6daf3cf0 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 18 Jan 2017 12:01:16 +0000 Subject: [PATCH 03/16] pom.xml: add digraph-dependency-maven-plugin (again) This time use the digraph-dependency.basePackage to configure the plugin. --- README.md | 5 +++-- pom.xml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8808c4..6034c10 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ 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 +digraph-dependency.version|0.7.0 maven-surefire-plugin.version|2.19.1 maven-failsafe-plugin.version|2.19.1 maven-pmd-plugin.version|3.6 @@ -208,9 +209,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 d98110b..c0d86b0 100644 --- a/pom.xml +++ b/pom.xml @@ -45,6 +45,10 @@ 5-complexity 1.16.12 + + 0.7.0 + (UNSET:basePackage) + 2.10.4 3.0.1 1.6 @@ -193,6 +197,22 @@ + + net.kemitix + digraph-dependency-maven-plugin + ${digraph-dependency.version} + + ${digraph-dependency.basePackage} + + + + validate + + digraph + + + + org.apache.maven.plugins maven-compiler-plugin From 62452ff46344ef4ebb98aee966ed8adee4b54caa Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 18 Jan 2017 12:02:16 +0000 Subject: [PATCH 04/16] README.md: update versions to match pom.xml --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6034c10..f5fc9d3 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,11 @@ 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 digraph-dependency.version|0.7.0 +maven-compiler-plugin.version|3.6.0 maven-surefire-plugin.version|2.19.1 maven-failsafe-plugin.version|2.19.1 -maven-pmd-plugin.version|3.6 +maven-pmd-plugin.version|3.7 huntbugs.version|0.0.11 jacoco-maven-plugin.version|0.7.7.201606060606 highwheel-maven.version|1.2 From 8347c8962a71c2b16f4a65995baafe31a65ac7f6 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 18 Jan 2017 12:03:03 +0000 Subject: [PATCH 05/16] pom.xml: highwheel runs after compile highwheel uses the compiled class files, so needs to be run after the compile phase. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c0d86b0..a679821 100644 --- a/pom.xml +++ b/pom.xml @@ -353,7 +353,7 @@ ${highwheel-maven.version} - validate + compile analyse From 2516a17851fdabb54c00237d7f8adc9c9420f2fe Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 18 Jan 2017 12:04:44 +0000 Subject: [PATCH 06/16] README.md: use kemitix-checkstyle-ruleset-maven-plugin --- README.md | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index f5fc9d3..3b9a6c4 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,7 @@ 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 +kemitix-checkstyle-ruleset.version|2.0.4 digraph-dependency.version|0.7.0 maven-compiler-plugin.version|3.6.0 maven-surefire-plugin.version|2.19.1 @@ -46,30 +43,24 @@ 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. ### 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 From ee2c489ca289b385b2cc0288958b1b2562ba2f63 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 18 Jan 2017 12:05:55 +0000 Subject: [PATCH 07/16] README.md: update documentation --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3b9a6c4..bcf6065 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ 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 @@ -138,13 +138,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 @@ -157,7 +161,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 @@ -191,7 +195,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 From f28a0f2db4b05d7911f4bbe19c98e09a13ca19b0 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 8 Feb 2017 09:47:13 +0000 Subject: [PATCH 08/16] pom.xml: specify dependency management versions as properties --- pom.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a679821..1310ad1 100644 --- a/pom.xml +++ b/pom.xml @@ -45,6 +45,8 @@ 5-complexity 1.16.12 + Athens-SR2 + Camden.SR4 0.7.0 (UNSET:basePackage) @@ -82,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 From e275ab502c430ad09c7101816adcc1736394386b Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 8 Feb 2017 12:41:17 +0000 Subject: [PATCH 09/16] pom.xml: upgrade kemitix-checkstyle-ruleset to 2.1.2 Includes checkstyle 7.5.1, so remove custom configuration. --- README.md | 5 +++-- pom.xml | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bcf6065..40b3e0b 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ 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 -kemitix-checkstyle-ruleset.version|2.0.4 +kemitix-checkstyle-ruleset.version|2.1.2 digraph-dependency.version|0.7.0 maven-compiler-plugin.version|3.6.0 maven-surefire-plugin.version|2.19.1 @@ -49,7 +49,8 @@ The Checkstyle plugin is configured using the `kemitix-checkstyle-ruleset-maven-plugin`. The `kemitix-checkstyle-ruleset` provides five levels of checks. The -default is set to `5-complexity`, the most strict. +default is set to `5-complexity`, the most strict. It runs during the +`validate` phase. ### Configuration diff --git a/pom.xml b/pom.xml index 1310ad1..fa8a251 100644 --- a/pom.xml +++ b/pom.xml @@ -41,7 +41,7 @@ UTF-8 UTF-8 target - 2.0.4 + 2.1.2 5-complexity 1.16.12 @@ -187,9 +187,6 @@ net.kemitix kemitix-checkstyle-ruleset-maven-plugin ${kemitix-checkstyle-ruleset.version} - - 7.4 - validate From 80d3439639ffa4583f83faf10e6c52b54388aaf9 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 9 Feb 2017 14:35:16 +0000 Subject: [PATCH 10/16] pom.xml: upgrade maven-compiler-plugin to 3.6.1 --- README.md | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40b3e0b..0679874 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ maven-gpg-plugin.version|1.6 maven-deploy-plugin.version|2.8.2 kemitix-checkstyle-ruleset.version|2.1.2 digraph-dependency.version|0.7.0 -maven-compiler-plugin.version|3.6.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.7 diff --git a/pom.xml b/pom.xml index fa8a251..7c62fa0 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,7 @@ 3.0.1 1.6 2.8.2 - 3.6.0 + 3.6.1 2.19.1 2.19.1 3.7 From e6d05e9a33fc8b1e0d7acd4efb7b6d169bbc8531 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 9 Feb 2017 14:39:41 +0000 Subject: [PATCH 11/16] pom.xml: upgrade jacoco-maven-plugin to 0.7.9 Release 0.7.9 (2017/02/05) Fixed Bugs "java.lang.ClassFormatError: Short length on BootstrapMethods in class file" caused by bug in ASM library (GitHub #462). Do not recompute frames in case of large methods, otherwise java.lang.ClassNotFoundException might be thrown (GitHub #177). ExecutionDataWriter.FORMAT_VERSION is not a compile-time constant (GitHub #474). Maven goal "prepare-agent" should not overwrite existing property value if execution was skipped (GitHub #486). API Changes JaCoCo.ASM_API_VERSION removed (GitHub #474). Non-functional Changes JaCoCo now depends on ASM 5.2. OSGi metadata now generated automatically and additionally include uses directives, Require-Capability attribute, and export of all internal packages with x-internal:=true directive (GitHub #211). Removed OSGi attributes that were mistakenly added in version 0.6.1 into jacocoant.jar that contains all dependencies (GitHub #211). Release 0.7.8 (2016/12/09) New Features User property jacoco.dataFile for parameter dataFile of Maven report goal (GitHub #322). Fixed Bugs Use RoundingMode#FLOOR instead of RoundingMode#HALF_EVEN for percentages in HTML report, so that "99.5" is displayed as "99%", not as "100%" (GitHub #452). Do not add useless members into Java 8 interfaces that have only interface initialization and abstract methods (GitHub #441). Fix instrumentation to not violate Java Virtual Machine Specification regarding initialization of final fields, otherwise IllegalAccessError will be thrown starting from OpenJDK 9 EA b127 (GitHub #434). Fix instrumentation of interfaces with default methods to not create incorrect constant pool entries, which lead to IncompatibleClassChangeError starting from OpenJDK 9 EA b122 (GitHub #428). Add Maven goal report-aggregate to lifecycle-mapping-metadata.xml (GitHub #427). Non-functional Changes Released JaCoCo JARs are not signed any more. Signed versions of JaCoCo are now available from the Eclipse Orbit project (GitHub #466). Simplified numbering of versions - JaCoCo JARs in Maven Central repository do not have qualifier any more (GitHub #468). --- README.md | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0679874..18edbe4 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ maven-surefire-plugin.version|2.19.1 maven-failsafe-plugin.version|2.19.1 maven-pmd-plugin.version|3.7 huntbugs.version|0.0.11 -jacoco-maven-plugin.version|0.7.7.201606060606 +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 diff --git a/pom.xml b/pom.xml index 7c62fa0..38ad43c 100644 --- a/pom.xml +++ b/pom.xml @@ -60,7 +60,7 @@ 2.19.1 3.7 0.0.11 - 0.7.7.201606060606 + 0.7.9 1.2 2.9 2.5 From dd9cd1239f003942e6ba829df5a048c718f843c7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 9 Feb 2017 14:42:24 +0000 Subject: [PATCH 12/16] pom.xml: upgrade spring cloud Camden.SR5 --- README.md | 1 + pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 18edbe4..2bf813b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ property|value project.build.sourceEncoding|UTF-8 project.reporting.outputEncoding|UTF-8 kemitix.build.directory|target +spring-cloud|Camden.SR5 maven-javadoc-plugin.version|2.10.4 maven-source-plugin.version|3.0.1 maven-gpg-plugin.version|1.6 diff --git a/pom.xml b/pom.xml index 38ad43c..81bd26b 100644 --- a/pom.xml +++ b/pom.xml @@ -46,7 +46,7 @@ 1.16.12 Athens-SR2 - Camden.SR4 + Camden.SR5 0.7.0 (UNSET:basePackage) From 50e994ddb3582918bd9ed4c9255e6ae46e7163d0 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 9 Feb 2017 14:42:43 +0000 Subject: [PATCH 13/16] README.md: add missing version values --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2bf813b..690a9d8 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ property|value project.build.sourceEncoding|UTF-8 project.reporting.outputEncoding|UTF-8 kemitix.build.directory|target +lombok|1.16.12 +spring-platform|Athens-SR2 spring-cloud|Camden.SR5 maven-javadoc-plugin.version|2.10.4 maven-source-plugin.version|3.0.1 From 2b9742d053b00a5f5c1a3437d783cdfba372ff7c Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 9 Feb 2017 14:45:06 +0000 Subject: [PATCH 14/16] pom.xml: upgrade spring-platform to Athens.SR3 --- README.md | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 690a9d8..8cd30aa 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ project.build.sourceEncoding|UTF-8 project.reporting.outputEncoding|UTF-8 kemitix.build.directory|target lombok|1.16.12 -spring-platform|Athens-SR2 +spring-platform|Athens-SR3 spring-cloud|Camden.SR5 maven-javadoc-plugin.version|2.10.4 maven-source-plugin.version|3.0.1 diff --git a/pom.xml b/pom.xml index 81bd26b..dfce04b 100644 --- a/pom.xml +++ b/pom.xml @@ -45,7 +45,7 @@ 5-complexity 1.16.12 - Athens-SR2 + Athens-SR3 Camden.SR5 0.7.0 From 92a1abe9eaa20699ee5aa6da3750d7172ce6862a Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 9 Feb 2017 14:58:19 +0000 Subject: [PATCH 15/16] pom.xml: version set to 2.4.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index dfce04b..c7e10ce 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ net.kemitix kemitix-parent - 2.4.0-SNAPSHOT + 2.4.0 pom Kemitix Parent From 49c8f0799947a0fbf5412f9ccebe634aca0ba981 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 9 Feb 2017 14:58:19 +0000 Subject: [PATCH 16/16] CHANGELOG --- CHANGELOG | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 ------