Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Use project.version directly instead of loading it to yet ano… #970

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[build] Use project.version directly instead of loading it to yet ano…
…ther field
hazendaz committed Jan 20, 2025
commit bd44f12b4f9d1b7efe827ca4034ce6bfd8615975
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -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>

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
@@ -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>
2 changes: 1 addition & 1 deletion src/site/apt/examples/violationChecking.apt.vm
Original file line number Diff line number Diff line change
@@ -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>
20 changes: 10 additions & 10 deletions src/site/apt/usage.apt.vm
Original file line number Diff line number Diff line change
@@ -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
@@ -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>
@@ -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 -->
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>