From 3d14679e184dc319f1a9fcaf6c4eb359528b4bd7 Mon Sep 17 00:00:00 2001 From: utarwyn Date: Thu, 16 Nov 2023 22:53:32 +0100 Subject: [PATCH] Add build number to manifest (ecoCode#185) --- CHANGELOG.md | 4 +++ sonar-plugin/pom.xml | 59 +++++++++++++++++++++++++++++++------------- 2 files changed, 46 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d8aebf..4f40b47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- [ecoCode#185](https://github.com/green-code-initiative/ecoCode/issues/185) Add build number to manifest + ### Fixed - [#30](https://github.com/green-code-initiative/ecoCode-javascript/issues/30) Fix typo in EC12 rule diff --git a/sonar-plugin/pom.xml b/sonar-plugin/pom.xml index f33e065..30f0855 100644 --- a/sonar-plugin/pom.xml +++ b/sonar-plugin/pom.xml @@ -49,14 +49,15 @@ ${encoding} ${encoding} - 0.0.6 - 9.4.0.54424 - 9.13.0.20537 - 1.21.0.505 - 2.5.0.1358 - 3.1.0 - 3.4.1 - 4.1 + 0.0.6 + 9.4.0.54424 + 9.13.0.20537 + 1.23.0.740 + 2.5.0.1358 + 3.1.0 + 3.1.0 + 3.4.1 + 4.1 5.9.3 5.3.1 @@ -69,21 +70,21 @@ io.ecocode ecocode-rules-specifications - ${ecocode-rules-specifications.version} + ${version.ecocode-rules-specifications} javascript org.sonarsource.sonarqube sonar-plugin-api - ${sonarqube.version} + ${version.sonarqube} provided org.sonarsource.javascript sonar-javascript-plugin - ${sonar-javascript.version} + ${version.sonar-javascript} sonar-plugin provided @@ -91,7 +92,7 @@ org.sonarsource.analyzer-commons sonar-analyzer-commons - ${sonar-analyzer-commons.version} + ${version.sonar-analyzer-commons} @@ -131,22 +132,27 @@ org.sonarsource.sonar-packaging-maven-plugin sonar-packaging-maven-plugin - ${sonar-packaging.version} + ${version.sonar-packaging} true ecocodejavascript ${project.name} io.ecocode.javascript.JavaScriptPlugin false - ${sonarqube.version} + ${version.sonarqube} true ${java.version} + + + ${buildNumber} + + org.apache.maven.plugins maven-shade-plugin - ${maven-shade.version} + ${version.maven-shade} package @@ -176,10 +182,29 @@ + + org.codehaus.mojo + buildnumber-maven-plugin + ${version.buildnumber} + + + validate + + create + + + + + false + false + true + 0 + + org.codehaus.mojo exec-maven-plugin - ${maven-exec.version} + ${version.maven-exec} eslint-plugin-clean @@ -234,7 +259,7 @@ com.mycila license-maven-plugin - ${license-maven-plugin.version} + ${version.license-maven-plugin} Green Code Initiative