From bd44f12b4f9d1b7efe827ca4034ce6bfd8615975 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Sat, 18 Jan 2025 20:43:21 -0500 Subject: [PATCH] [build] Use project.version directly instead of loading it to yet another field --- pom.xml | 2 -- .../apt/examples/multi-module-config.apt.vm | 2 +- .../apt/examples/violationChecking.apt.vm | 2 +- src/site/apt/usage.apt.vm | 20 +++++++++---------- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index b56e0326..536b44f0 100644 --- a/pom.xml +++ b/pom.xml @@ -167,8 +167,6 @@ ${project.basedir}/src/main/groovy - ${project.version} - 1731432691 diff --git a/src/site/apt/examples/multi-module-config.apt.vm b/src/site/apt/examples/multi-module-config.apt.vm index 7033dd25..de1305be 100644 --- a/src/site/apt/examples/multi-module-config.apt.vm +++ b/src/site/apt/examples/multi-module-config.apt.vm @@ -151,7 +151,7 @@ whizbang com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} Max Low diff --git a/src/site/apt/examples/violationChecking.apt.vm b/src/site/apt/examples/violationChecking.apt.vm index bc18800e..6804238f 100644 --- a/src/site/apt/examples/violationChecking.apt.vm +++ b/src/site/apt/examples/violationChecking.apt.vm @@ -56,7 +56,7 @@ Violation Checking com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} Max Low diff --git a/src/site/apt/usage.apt.vm b/src/site/apt/usage.apt.vm index 72ad6914..5dfc23d0 100644 --- a/src/site/apt/usage.apt.vm +++ b/src/site/apt/usage.apt.vm @@ -40,7 +40,7 @@ ~~ https://maven.apache.org/doxia/references/apt-format.html Usage -${projectVersion} +${project.version} The following examples describe the basic usage of the SpotBugs plugin. * Generate SpotBugs Report As Part of the Project Reports @@ -58,7 +58,7 @@ Usage com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} @@ -91,7 +91,7 @@ mvn site com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} true @@ -128,7 +128,7 @@ mvn site com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} spotbugs-exclude.xml spotbugs-include.xml @@ -162,7 +162,7 @@ mvn site com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} FindDeadLocalStores,UnreadFields @@ -193,7 +193,7 @@ mvn site com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} FindDeadLocalStores,UnreadFields @@ -224,7 +224,7 @@ mvn site com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} com.github.spotbugs.spotbugs.* @@ -255,7 +255,7 @@ mvn site com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} myDetectors.jar, yourDetectors.jar @@ -285,7 +285,7 @@ mvn site com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version} @@ -324,7 +324,7 @@ mvn site com.github.spotbugs spotbugs-maven-plugin - ${projectVersion} + ${project.version}