-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update POM to use the release plugin
Fixes #26 Signed-off-by: Gary O'Neall <[email protected]>
- Loading branch information
Showing
2 changed files
with
70 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Release Checklist for the SPDX Spreadsheet Store | ||
|
||
- [ ] Check for any warnings from the compiler and findbugs | ||
- [ ] Run unit tests for all packages that depend on the library | ||
- [ ] 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,9 @@ | |
<description>Stores SPDX documents in Microsoft Excel formats. Supports both XLS and XLSX file types.</description> | ||
<scm> | ||
<url>https://github.com/spdx/spdx-java-spreadsheet-store</url> | ||
<connection>https:</connection> | ||
<connection>scm:git:ssh://[email protected]:spdx/spdx-java-spreadsheet-store</connection> | ||
<developerConnection>scm:git:[email protected]:spdx/spdx-java-spreadsheet-store</developerConnection> | ||
<tag>master</tag> | ||
</scm> | ||
<issueManagement> | ||
<system>Github</system> | ||
|
@@ -67,9 +69,23 @@ | |
</properties> | ||
</profile> | ||
<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> | ||
|
@@ -88,6 +104,28 @@ | |
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.9</version> | ||
<configuration> | ||
<quiet>true</quiet> | ||
<source>8</source> | ||
<javadocExecutable>${env.JAVA_HOME}/bin/javadoc</javadocExecutable> | ||
<additionalparam>-Xdoclint:none</additionalparam> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<configuration> | ||
<additionalparam>${javadoc.opts}</additionalparam> | ||
</configuration> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
|
@@ -102,7 +140,7 @@ | |
<dependency> | ||
<groupId>org.spdx</groupId> | ||
<artifactId>java-spdx-library</artifactId> | ||
<version>1.1.6</version> | ||
<version>1.1.10</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.poi</groupId> | ||
|
@@ -137,6 +175,16 @@ | |
</testResource> | ||
</testResources> | ||
<plugins> | ||
<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> | ||
<plugin> | ||
<groupId>org.owasp</groupId> | ||
<artifactId>dependency-check-maven</artifactId> | ||
|
@@ -145,7 +193,7 @@ | |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.6.1</version> | ||
<version>3.11.0</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
|
@@ -155,46 +203,10 @@ | |
<optimize>true</optimize> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.9</version> | ||
<configuration> | ||
<quiet>true</quiet> | ||
<source>8</source> | ||
<javadocExecutable>${env.JAVA_HOME}/bin/javadoc</javadocExecutable> | ||
<additionalparam>-Xdoclint:none</additionalparam> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<configuration> | ||
<additionalparam>${javadoc.opts}</additionalparam> | ||
</configuration> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</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.spdx</groupId> | ||
<artifactId>spdx-maven-plugin</artifactId> | ||
<version>0.5.5</version> | ||
<version>0.7.1</version> | ||
<executions> | ||
<execution> | ||
<id>build-spdx</id> | ||
|
@@ -205,15 +217,13 @@ | |
</execution> | ||
</executions> | ||
<configuration> | ||
<spdxDocumentNamespace>http://spdx.org/documents/java-spdx-spreadsheet-store-{$version}</spdxDocumentNamespace> | ||
|
||
<defaultFileCopyright>Copyright (c) 2020 Source Auditor Inc.</defaultFileCopyright> | ||
<defaultFileContributors> | ||
<param>Gary O'Neall</param> | ||
</defaultFileContributors> | ||
<defaultLicenseInformationInFile>Apache-2.0</defaultLicenseInformationInFile> | ||
<defaultFileConcludedLicense>Apache-2.0</defaultFileConcludedLicense> | ||
<defaultFileNotice>Licensed under the Apache License, Version 2.0 (the "License"); | ||
<defaultFileCopyright>Copyright (c) 2020 Source Auditor Inc.</defaultFileCopyright> | ||
<defaultFileContributors> | ||
<param>Gary O'Neall</param> | ||
</defaultFileContributors> | ||
<defaultLicenseInformationInFile>Apache-2.0</defaultLicenseInformationInFile> | ||
<defaultFileConcludedLicense>Apache-2.0</defaultFileConcludedLicense> | ||
<defaultFileNotice>Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
|