Skip to content

Commit 4276bac

Browse files
committed
Update POM to use the release plugin
Signed-off-by: Gary O'Neall <[email protected]>
1 parent c850dbe commit 4276bac

File tree

2 files changed

+39
-18
lines changed

2 files changed

+39
-18
lines changed

RELEASE-CHECKLIST.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Release Checklist for the SPDX Java Tools
2+
3+
- [ ] Check for any warnings from the compiler and findbugs
4+
- [ ] Run unit tests for all packages that depend on the application
5+
- [ ] Run dependency check to find any potential vulnerabilities `mvn dependency-check:check`
6+
- [ ] Run `mvn release:prepare` - you will be prompted for the release - typically take the defaults
7+
- [ ] Run `mvn release:perform`
8+
- [ ] Release artifacts to Maven Central
9+
- [ ] Create a Git release including release notes
10+
- [ ] Zip up the files from the Maven archive and add them to the release

pom.xml

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<url>https://github.com/spdx/tools-java</url>
3434
<connection>https://github.com/spdx/tools-java.git</connection>
3535
<developerConnection>https://github.com/spdx/tools-java.git</developerConnection>
36+
<tag>master</tag>
3637
</scm>
3738
<issueManagement>
3839
<system>Github</system>
@@ -61,9 +62,23 @@
6162
</properties>
6263
<profiles>
6364
<profile>
64-
<id>gpg-signing</id>
65+
<id>release</id>
6566
<build>
6667
<plugins>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-source-plugin</artifactId>
71+
<version>3.2.1</version>
72+
<executions>
73+
<execution>
74+
<id>attach-sources</id>
75+
<phase>verify</phase>
76+
<goals>
77+
<goal>jar-no-fork</goal>
78+
</goals>
79+
</execution>
80+
</executions>
81+
</plugin>
6782
<plugin>
6883
<groupId>org.apache.maven.plugins</groupId>
6984
<artifactId>maven-gpg-plugin</artifactId>
@@ -205,7 +220,7 @@
205220
<plugin>
206221
<groupId>org.apache.maven.plugins</groupId>
207222
<artifactId>maven-compiler-plugin</artifactId>
208-
<version>3.6.1</version>
223+
<version>3.11.0</version>
209224
<configuration>
210225
<encoding>${project.build.sourceEncoding}</encoding>
211226
<showDeprecation>true</showDeprecation>
@@ -235,20 +250,6 @@
235250
</execution>
236251
</executions>
237252
</plugin>
238-
<plugin>
239-
<groupId>org.apache.maven.plugins</groupId>
240-
<artifactId>maven-source-plugin</artifactId>
241-
<version>3.2.1</version>
242-
<executions>
243-
<execution>
244-
<id>attach-sources</id>
245-
<phase>verify</phase>
246-
<goals>
247-
<goal>jar-no-fork</goal>
248-
</goals>
249-
</execution>
250-
</executions>
251-
</plugin>
252253
<plugin>
253254
<groupId>org.apache.maven.plugins</groupId>
254255
<artifactId>maven-shade-plugin</artifactId>
@@ -288,7 +289,7 @@
288289
<plugin>
289290
<groupId>org.spdx</groupId>
290291
<artifactId>spdx-maven-plugin</artifactId>
291-
<version>0.6.0</version>
292+
<version>0.7.2</version>
292293
<executions>
293294
<execution>
294295
<id>build-spdx</id>
@@ -300,7 +301,7 @@
300301
</executions>
301302
<configuration>
302303
<spdxDocumentNamespace>http://spdx.org/documents/tools-java-${project.version}</spdxDocumentNamespace>
303-
<defaultFileCopyright>Copyright (c) 2020 Source Auditor Inc.</defaultFileCopyright>
304+
<defaultFileCopyright>Copyright (c) 2024 Source Auditor Inc.</defaultFileCopyright>
304305
<defaultFileContributors>
305306
<param>Gary O'Neall</param>
306307
</defaultFileContributors>
@@ -325,6 +326,16 @@
325326
<originator>Organization: Linux Foundation</originator>
326327
</configuration>
327328
</plugin>
329+
<plugin>
330+
<groupId>org.apache.maven.plugins</groupId>
331+
<artifactId>maven-release-plugin</artifactId>
332+
<version>3.0.1</version>
333+
<configuration>
334+
<tagNameFormat>v@{project.version}</tagNameFormat>
335+
<releaseProfiles>release</releaseProfiles>
336+
<goals>deploy</goals>
337+
</configuration>
338+
</plugin>
328339
</plugins>
329340
</build>
330341
</project>

0 commit comments

Comments
 (0)