Skip to content

Commit

Permalink
Merge pull request #150 from spdx/releasepom
Browse files Browse the repository at this point in the history
Update POM to use the release plugin
  • Loading branch information
goneall authored Jan 4, 2024
2 parents c850dbe + 4276bac commit a14bfcd
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 18 deletions.
10 changes: 10 additions & 0 deletions RELEASE-CHECKLIST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Release Checklist for the SPDX Java Tools

- [ ] Check for any warnings from the compiler and findbugs
- [ ] Run unit tests for all packages that depend on the application
- [ ] Run dependency check to find any potential vulnerabilities `mvn dependency-check:check`
- [ ] Run `mvn release:prepare` - you will be prompted for the release - typically take the defaults
- [ ] Run `mvn release:perform`
- [ ] Release artifacts to Maven Central
- [ ] Create a Git release including release notes
- [ ] Zip up the files from the Maven archive and add them to the release
47 changes: 29 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<url>https://github.com/spdx/tools-java</url>
<connection>https://github.com/spdx/tools-java.git</connection>
<developerConnection>https://github.com/spdx/tools-java.git</developerConnection>
<tag>master</tag>
</scm>
<issueManagement>
<system>Github</system>
Expand Down Expand Up @@ -61,9 +62,23 @@
</properties>
<profiles>
<profile>
<id>gpg-signing</id>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down Expand Up @@ -205,7 +220,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<version>3.11.0</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<showDeprecation>true</showDeprecation>
Expand Down Expand Up @@ -235,20 +250,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down Expand Up @@ -288,7 +289,7 @@
<plugin>
<groupId>org.spdx</groupId>
<artifactId>spdx-maven-plugin</artifactId>
<version>0.6.0</version>
<version>0.7.2</version>
<executions>
<execution>
<id>build-spdx</id>
Expand All @@ -300,7 +301,7 @@
</executions>
<configuration>
<spdxDocumentNamespace>http://spdx.org/documents/tools-java-${project.version}</spdxDocumentNamespace>
<defaultFileCopyright>Copyright (c) 2020 Source Auditor Inc.</defaultFileCopyright>
<defaultFileCopyright>Copyright (c) 2024 Source Auditor Inc.</defaultFileCopyright>
<defaultFileContributors>
<param>Gary O'Neall</param>
</defaultFileContributors>
Expand All @@ -325,6 +326,16 @@
<originator>Organization: Linux Foundation</originator>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit a14bfcd

Please sign in to comment.