Skip to content

Commit 1a98630

Browse files
committed
Configure maven-release-plugin
See spdx/spdx-maven-plugin#125 (comment) for information on using the release plugin Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
1 parent e850e4b commit 1a98630

2 files changed

Lines changed: 35 additions & 15 deletions

File tree

RELEASE-CHECKLIST.md

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

pom.xml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<url>https://github.com/spdx/Spdx-Java-Library</url>
3535
<connection>scm:git:git://github.com/spdx/Spdx-Java-Library.git</connection>
3636
<developerConnection>scm:git:git@github.com:/spdx/Spdx-Java-Library.git</developerConnection>
37+
<tag>master</tag>
3738
</scm>
3839
<distributionManagement>
3940
<repository>
@@ -79,9 +80,23 @@
7980
</properties>
8081
</profile>
8182
<profile>
82-
<id>gpg-signing</id>
83+
<id>release</id>
8384
<build>
8485
<plugins>
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-source-plugin</artifactId>
89+
<version>3.2.1</version>
90+
<executions>
91+
<execution>
92+
<id>attach-sources</id>
93+
<phase>verify</phase>
94+
<goals>
95+
<goal>jar-no-fork</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
85100
<plugin>
86101
<groupId>org.apache.maven.plugins</groupId>
87102
<artifactId>maven-gpg-plugin</artifactId>
@@ -229,20 +244,6 @@
229244
</archive>
230245
</configuration>
231246
</plugin>
232-
<plugin>
233-
<groupId>org.apache.maven.plugins</groupId>
234-
<artifactId>maven-source-plugin</artifactId>
235-
<version>3.3.0</version>
236-
<executions>
237-
<execution>
238-
<id>attach-sources</id>
239-
<phase>verify</phase>
240-
<goals>
241-
<goal>jar-no-fork</goal>
242-
</goals>
243-
</execution>
244-
</executions>
245-
</plugin>
246247
<plugin>
247248
<groupId>org.spdx</groupId>
248249
<artifactId>spdx-maven-plugin</artifactId>
@@ -286,6 +287,16 @@
286287
<originator>Organization: Linux Foundation</originator>
287288
</configuration>
288289
</plugin>
290+
<plugin>
291+
<groupId>org.apache.maven.plugins</groupId>
292+
<artifactId>maven-release-plugin</artifactId>
293+
<version>3.0.1</version>
294+
<configuration>
295+
<tagNameFormat>v@{project.version}</tagNameFormat>
296+
<releaseProfiles>release</releaseProfiles>
297+
<goals>deploy</goals>
298+
</configuration>
299+
</plugin>
289300
</plugins>
290301
</build>
291302
<reporting>

0 commit comments

Comments
 (0)