Skip to content

Commit

Permalink
Merge pull request #970 from hazendaz/master
Browse files Browse the repository at this point in the history
[build] Use project.version directly instead of loading it to yet ano…
  • Loading branch information
hazendaz authored Jan 20, 2025
2 parents 1ea3753 + bd44f12 commit 7cf8924
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@

<sourceDirectory>${project.basedir}/src/main/groovy</sourceDirectory>

<projectVersion>${project.version}</projectVersion>

<!-- Reproducible Builds: override timestamp value from parent -->
<project.build.outputTimestamp>1731432691</project.build.outputTimestamp>

Expand Down
2 changes: 1 addition & 1 deletion src/site/apt/examples/multi-module-config.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ whizbang
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
Expand Down
2 changes: 1 addition & 1 deletion src/site/apt/examples/violationChecking.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Violation Checking
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
Expand Down
20 changes: 10 additions & 10 deletions src/site/apt/usage.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
~~ https://maven.apache.org/doxia/references/apt-format.html

Usage
<version>${projectVersion}</version>
<version>${project.version}</version>
The following examples describe the basic usage of the SpotBugs plugin.

* Generate SpotBugs Report As Part of the Project Reports
Expand All @@ -58,7 +58,7 @@ Usage
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
</plugin>
</plugins>
</reporting>
Expand Down Expand Up @@ -91,7 +91,7 @@ mvn site
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<xmlOutput>true</xmlOutput>
<!-- Optional directory to put spotbugs xdoc xml report -->
Expand Down Expand Up @@ -128,7 +128,7 @@ mvn site
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
<includeFilterFile>spotbugs-include.xml</includeFilterFile>
Expand Down Expand Up @@ -162,7 +162,7 @@ mvn site
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<visitors>FindDeadLocalStores,UnreadFields</visitors>
</configuration>
Expand Down Expand Up @@ -193,7 +193,7 @@ mvn site
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<omitVisitors>FindDeadLocalStores,UnreadFields</omitVisitors>
</configuration>
Expand Down Expand Up @@ -224,7 +224,7 @@ mvn site
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<onlyAnalyze>com.github.spotbugs.spotbugs.*</onlyAnalyze>
</configuration>
Expand Down Expand Up @@ -255,7 +255,7 @@ mvn site
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<pluginList>myDetectors.jar, yourDetectors.jar</pluginList>
</configuration>
Expand Down Expand Up @@ -285,7 +285,7 @@ mvn site
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<plugins>
<plugin>
Expand Down Expand Up @@ -324,7 +324,7 @@ mvn site
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${projectVersion}</version>
<version>${project.version}</version>
<configuration>
<!-- Optional directory to put spotbugs xml report -->
</configuration>
Expand Down

0 comments on commit 7cf8924

Please sign in to comment.