From 6420787def9ede63fcda91919ffb5ed818f9f833 Mon Sep 17 00:00:00 2001 From: Jonathan Austin Date: Fri, 20 Mar 2020 17:40:05 +1100 Subject: [PATCH 1/7] Update latest Dependencies and modify checkstyle rules to work with latest version 8.30. --- .../resources/bordertech/bt-checkstyle.xml | 125 +++++++++++------- pom.xml | 6 +- qa-parent/pom.xml | 22 +-- 3 files changed, 88 insertions(+), 65 deletions(-) diff --git a/build-tools/src/main/resources/bordertech/bt-checkstyle.xml b/build-tools/src/main/resources/bordertech/bt-checkstyle.xml index aa20502..223f746 100644 --- a/build-tools/src/main/resources/bordertech/bt-checkstyle.xml +++ b/build-tools/src/main/resources/bordertech/bt-checkstyle.xml @@ -1,9 +1,9 @@ + "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" + "https://checkstyle.org/dtds/configuration_1_3.dtd"> - + + - - + - @@ -44,36 +44,44 @@ + + + + + + - + - - - - - + + - + - + + + + + + + + + - - - + + @@ -81,41 +89,49 @@ - + - + + + + - + - + + - + - + + + + + - - + + @@ -123,39 +139,36 @@ - + - + - + - - - - - - + + + - + - + @@ -166,19 +179,21 @@ - + + - + + @@ -186,24 +201,24 @@ - - + + - + + + @@ -211,8 +226,8 @@ - - + @@ -221,16 +236,24 @@ - + + + + + + + + diff --git a/pom.xml b/pom.xml index 8b32327..486ab3b 100755 --- a/pom.xml +++ b/pom.xml @@ -157,7 +157,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.1.1 + 3.2.0 @@ -186,7 +186,7 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.0.0-M2 + 3.0.0-M3 enforcer @@ -236,7 +236,7 @@ org.apache.maven.plugins maven-source-plugin - 3.1.0 + 3.2.1 diff --git a/qa-parent/pom.xml b/qa-parent/pom.xml index 61b8756..2120173 100644 --- a/qa-parent/pom.xml +++ b/qa-parent/pom.xml @@ -52,18 +52,18 @@ - 5.5.0 - 0.8.4 + 5.6.0 + 0.8.5 2.22.2 - 3.0.0 - 8.22 - 3.12.0 - 6.16.0 - 3.1.11 - 7.4.5 - 3.1.12 - 1.9.0 - 5.0.0-M3 + 3.1.1 + 8.30 + 3.13.0 + 6.22.0 + 4.0.0 + 7.4.7 + 4.0.1 + 1.10.1 + 5.2.4 From 4159dc988b9a2abee87ad1e0d6905a6eb42e04db Mon Sep 17 00:00:00 2001 From: Jonathan Austin Date: Tue, 24 Mar 2020 11:44:49 +1100 Subject: [PATCH 2/7] Modify checkstyle and pmd rules --- .../resources/bordertech/bt-checkstyle.xml | 54 +++++++++++-------- .../resources/bordertech/bt-pmd-rules.xml | 4 +- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/build-tools/src/main/resources/bordertech/bt-checkstyle.xml b/build-tools/src/main/resources/bordertech/bt-checkstyle.xml index 223f746..25f4fe0 100644 --- a/build-tools/src/main/resources/bordertech/bt-checkstyle.xml +++ b/build-tools/src/main/resources/bordertech/bt-checkstyle.xml @@ -18,6 +18,7 @@ https://checkstyle.org (or in your downloaded distribution). Most Checks are configurable, be sure to consult the documentation. To completely disable a check, just comment it out or delete it from the file. + To suppress certain violations please review suppression filters. Finally, it is worth reading the documentation. --> @@ -30,7 +31,8 @@ --> - + + - + - + - + - - + + @@ -95,7 +98,7 @@ - + @@ -112,18 +115,19 @@ + - + - + @@ -154,11 +158,11 @@ - + - + @@ -182,7 +186,7 @@ - + @@ -193,7 +197,7 @@ - + @@ -203,22 +207,30 @@ - + - - + + + + + + - - + + + + + + - + @@ -238,11 +250,11 @@ - + diff --git a/build-tools/src/main/resources/bordertech/bt-pmd-rules.xml b/build-tools/src/main/resources/bordertech/bt-pmd-rules.xml index db09050..8a7f129 100644 --- a/build-tools/src/main/resources/bordertech/bt-pmd-rules.xml +++ b/build-tools/src/main/resources/bordertech/bt-pmd-rules.xml @@ -48,12 +48,10 @@ 3 - \ No newline at end of file From f39d3e76b496cc3c693a93624b3a54418db9d802 Mon Sep 17 00:00:00 2001 From: Jonathan Austin Date: Wed, 25 Mar 2020 12:21:18 +1100 Subject: [PATCH 3/7] Use properties to configure plugins --- .../resources/bordertech/bt-pmd-rules.xml | 1 + qa-parent/pom.xml | 33 ++++++++----------- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/build-tools/src/main/resources/bordertech/bt-pmd-rules.xml b/build-tools/src/main/resources/bordertech/bt-pmd-rules.xml index 8a7f129..b6e0547 100644 --- a/build-tools/src/main/resources/bordertech/bt-pmd-rules.xml +++ b/build-tools/src/main/resources/bordertech/bt-pmd-rules.xml @@ -11,6 +11,7 @@ + diff --git a/qa-parent/pom.xml b/qa-parent/pom.xml index 2120173..501a30c 100644 --- a/qa-parent/pom.xml +++ b/qa-parent/pom.xml @@ -30,10 +30,15 @@ bordertech/bt-checkstyle.xml + true 2 + + true bordertech/bt-pmd-rules.xml + + false @@ -43,13 +48,20 @@ 14 - + 12 - 4 + 9 + + false + + false + + false + false 5.6.0 @@ -130,11 +142,6 @@ org.apache.maven.plugins maven-checkstyle-plugin ${bt.checkstyle.plugin.version} - - true - false - true - @@ -169,9 +176,6 @@ ${bt.pmd.rules.file} - true - false - true @@ -215,9 +219,6 @@ checkCpd verify - - false - cpd-check @@ -276,12 +277,6 @@ org.owasp dependency-check-maven ${bt.owasp.plugin.version} - - false - false - false - false - checkDependencies From a2e397782209927f7e36d2b7b64b430100e1e051 Mon Sep 17 00:00:00 2001 From: Jonathan Austin Date: Wed, 25 Mar 2020 12:25:57 +1100 Subject: [PATCH 4/7] Latest junit version --- qa-parent/pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa-parent/pom.xml b/qa-parent/pom.xml index 501a30c..c1783e5 100644 --- a/qa-parent/pom.xml +++ b/qa-parent/pom.xml @@ -55,6 +55,7 @@ 9 + false @@ -64,7 +65,7 @@ false - 5.6.0 + 5.6.1 0.8.5 2.22.2 3.1.1 From 2ede72889f3eae4b62db78a305ddaf2cbad90d69 Mon Sep 17 00:00:00 2001 From: Jonathan Austin Date: Wed, 25 Mar 2020 14:43:06 +1100 Subject: [PATCH 5/7] quick-build profile --- qa-parent/pom.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/qa-parent/pom.xml b/qa-parent/pom.xml index c1783e5..e648899 100644 --- a/qa-parent/pom.xml +++ b/qa-parent/pom.xml @@ -86,6 +86,31 @@ configuration from bordertech-parent. + + + + quick-build + + + true + true + + true + + true + true + true + true + + true + + true + + true + + + + From 9645a90fb4a5334a19a7551d66ee149ba097c2b9 Mon Sep 17 00:00:00 2001 From: Jonathan Austin Date: Wed, 25 Mar 2020 15:30:12 +1100 Subject: [PATCH 6/7] Add change log --- CHANGELOG.md | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..fe14f26 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,77 @@ +# Change log + +## Release in-progress +* Add quick-build profile. +* Update dependencies and plugin versions. +* Update bt-checkstyle.xml to include latest checks from sun_check.xml. +* Plugin configuration is only done via user properties which is easier for projects to override. + +## 1.0.15 +* Refactor README #52 +* Update plugin versions #54 + +## 1.0.14 +* Update README. +* Latest checkstyle and pmd. + +## 1.0.13 +* Remove redundant ${bt.plugin.xxxx} properties. Use plugin user properties instead. +* Update QA override details in README. +* Update bt-checkstyle.xml to include the latest checkstyle sun-check.xml changes. +* Delete bt-spotbugs-exclude-filter.xml as projects should handle their own excludes. +* Introduce ${bt.version} properties for dependency versions. +* Introduce maven version checker to display updates for project dependencies. +* Move enforce dependency convergence to qa-parent + +## 1.0.12 +* Updated plugin versions. +* Enhance vulnerability checking. +* Minor fixes to README. + +## 1.0.11 +* Update OWASP properties. + +## 1.0.10 +* Include dependency convergence check in the maven enforcer plugin. + +## 1.0.9 +* Fix Jacoco Coverage Report. + +## 1.0.8 +* Latest rules and versions of checkstyle, pmd and spotbugs (formerly findbugs). +* Removed wc.qa.skip property to only use bt.qa.skip. +* Removed surefire.version property as use plugin inheritance for version. +* Upgrade to junit 5. + +## 1.0.7 +* Update version of dependency-check-maven and change default config. +* Remove site generation. + +## 1.0.6 +* Added properties to manage non-java analysers in the dependency check plugin (see wiki). +* Turned off the following analysers (in default configuration): + * nsp analyzer; + * nuspec analyzer; + * swift package manager analyzer; and + * assembly analyzer. +* Incremented version of dependency-check-maven to 3.3.2. + +## 1.0.5 +* Added support for OWASP dependency checker using dependency-check-maven. + +## 1.0.4 +* Update README. +* Added bt.qa.skip property. +* Fix badger version. + +## 1.0.3 +* Added qa-parent. + +## 1.0.2 +* Generate javadoc and sources in release. + +## 1.0.1 +* Surefire version property. + +## 1.0.0 +* Initial version From c7d8653abf13f10d79861d5f97851c4e972c5622 Mon Sep 17 00:00:00 2001 From: Jonathan Austin Date: Wed, 25 Mar 2020 15:42:43 +1100 Subject: [PATCH 7/7] Update CHANGELOG.md --- CHANGELOG.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe14f26..9b6f90e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,11 @@ # Change log ## Release in-progress -* Add quick-build profile. +* Add quick-build profile that skips tests and QA checks #63 +* Change OWASP checker to fail on Critical (Level 9-10) issues and check for updates every 12 hours #60 * Update dependencies and plugin versions. -* Update bt-checkstyle.xml to include latest checks from sun_check.xml. -* Plugin configuration is only done via user properties which is easier for projects to override. +* Update bt-checkstyle.xml to include latest checks from checkstyle's sun_check.xml. +* Plugin configuration is only done via user properties which is easier for projects to override #59 ## 1.0.15 * Refactor README #52