diff --git a/.github/workflows/github-actions-build.yml b/.github/workflows/github-actions-build.yml index c962671..6734494 100644 --- a/.github/workflows/github-actions-build.yml +++ b/.github/workflows/github-actions-build.yml @@ -25,7 +25,7 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Build Test and Verify - run: mvn -B -U clean install -Dmaven.javadoc.skip=true + run: mvn -B -U clean install -Dmaven.javadoc.skip=true -Pdisplay-versions - name: SonarCloud Scan run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d2a08..12ca380 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Change log ## Release in-progress +* Move versions-maven-plugin into a profile display-versions to allow projects to opt in or out #74 * Switch from travis-ci to GitHub Actions #75 ## 1.0.17 diff --git a/README.md b/README.md index 0b7a5bd..c5f8f0c 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,6 @@ The qa-parent runs quality assurance checks on your java code using tools such a The qa-parent also runs: - the [OWASP plugin](https://jeremylong.github.io/DependencyCheck/dependency-check-maven/index.html) to check security vulnerabilities - the [Enforcer plugin](https://maven.apache.org/enforcer/maven-enforcer-plugin/) to check dependency convergence - - the [Version checker plugin](https://www.mojohaus.org/versions-maven-plugin/) to report project dependencies that have new versions - the [JaCoCo plugin](https://www.eclemma.org/jacoco/trunk/doc/maven.html) for code coverage reports - the [Surefire plugin](https://maven.apache.org/surefire/maven-surefire-plugin) for running unit tests @@ -104,6 +103,10 @@ The qa-parent inherits all of the release functionality from bordertech-parent. The qa-parent provides a profile `quick-build` that for convenience skips all tests and QA. This is very useful when developing a project and a quick build of the project is required. +#### display-versions profile + +The qa-parent provides a profile `display-versions` that uses the [Version checker plugin](https://www.mojohaus.org/versions-maven-plugin/) to report project dependencies that have new versions. + ### build-tools This is primarily a shared resources module used by qa-parent and potentially other BorderTech maven modules. diff --git a/qa-parent/pom.xml b/qa-parent/pom.xml index ee18a28..0b038c0 100644 --- a/qa-parent/pom.xml +++ b/qa-parent/pom.xml @@ -77,6 +77,7 @@ 4.1.4 1.11.0 6.0.2 + 2.8.1 @@ -109,6 +110,34 @@ true + + + + + display-versions + + + + org.codehaus.mojo + versions-maven-plugin + ${bt.versions.plugin} + + + display-version-updates + verify + + display-dependency-updates + display-parent-updates + display-plugin-updates + display-property-updates + + + + + + + + @@ -333,25 +362,6 @@ - - - org.codehaus.mojo - versions-maven-plugin - 2.8.1 - - - display-version-updates - verify - - display-dependency-updates - display-parent-updates - display-plugin-updates - display-property-updates - - - - -