<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.spdx</groupId>
  <artifactId>spdx-spreadsheet-store</artifactId>
  <version>2.0.2</version>
  <packaging>jar</packaging>

  <name>spdx-spreadsheet-store</name>
  <url>http://github.com/spdx/spdx-spreadsheet-store</url>
  <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>scm:git:ssh://git@github.com:spdx/spdx-java-spreadsheet-store</connection>
  	<developerConnection>scm:git:git@github.com:spdx/spdx-java-spreadsheet-store</developerConnection>
  	<tag>v2.0.2</tag>
  </scm>
  <issueManagement>
  	<system>Github</system>
  	<url>https://github.com/spdx/spdx-java-spreadsheet-store/issues</url>
  </issueManagement>
  <ciManagement>
  	<system>Github Actions</system>
  	<url>https://github.com/spdx/spdx-java-spreadsheet-store/actions</url>
  </ciManagement>
  <licenses>
	<license>
		<name>The Apache Software License, Version 2.0</name>
		<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
		<distribution>repo</distribution>
	</license>
  </licenses>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <sonar.host.url>https://sonarcloud.io</sonar.host.url>
    <sonar.organization>spdx</sonar.organization>
    <sonar.projectKey>spdx-spreadsheet-store</sonar.projectKey>
    <dependency-check-maven.version>12.1.9</dependency-check-maven.version>
  </properties>
  <developers>
	<developer>
		<id>goneall</id>
		<name>Gary O'Neall</name>
		<email>gary@sourceauditor.com</email>
		<organization>SPDX</organization>
		<organizationUrl>http://spdx.org</organizationUrl>
	</developer>
  </developers>
  <organization>
	<name>SPDX</name>
	<url>http://spdx.org</url>
  </organization>
  <profiles>
	<profile>
		<id>doclint-java8-disable</id>
		<activation>
			<jdk>[1.8,)</jdk>
		</activation>
		<properties>
			<javadoc.opts>-Xdoclint:none</javadoc.opts>
		</properties>
	</profile>
	<profile>
		<id>release</id>
		<build>
			<plugins>
			    <plugin>
			      <groupId>org.apache.maven.plugins</groupId>
			      <artifactId>maven-source-plugin</artifactId>
			      <version>3.4.0</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-jar-plugin</artifactId>
					<version>3.5.0</version>
					<configuration>
					<archive>
						<manifestEntries>
							<Automatic-Module-Name>org.spdx.spreadsheetstore</Automatic-Module-Name>
						</manifestEntries>
					</archive>
					</configuration>
				</plugin>
				<plugin>
	      			<groupId>org.apache.maven.plugins</groupId>
	      			<artifactId>maven-gpg-plugin</artifactId>
	      			<version>3.2.8</version>
	      			<executions>
	        			<execution>
	          				<id>sign-artifacts</id>
	          				<phase>verify</phase>
	          				<goals>
	            				<goal>sign</goal>
	          				</goals>
	          				<configuration>
	              				<keyname>${gpg.keyname}</keyname>
	              				<passphraseServerId>${gpg.keyname}</passphraseServerId>
	            			</configuration>
	        			</execution>
	      			</executions>
    			</plugin>
    			<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>3.12.0</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>
  </profiles>
  <dependencies>
    <dependency>
    	<groupId>com.opencsv</groupId>
    	<artifactId>opencsv</artifactId>
    	<version>5.12.0</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
    	<groupId>org.spdx</groupId>
    	<artifactId>java-spdx-library</artifactId>
    	<version>2.0.2</version>
    </dependency>
    <dependency>
    	<groupId>org.apache.poi</groupId>
    	<artifactId>poi</artifactId>
    	<version>5.5.0</version>
    </dependency>
    <dependency>
    	<groupId>org.apache.poi</groupId>
    	<artifactId>poi-ooxml</artifactId>
    	<version>5.4.1</version>
    </dependency>
  </dependencies>
  <build>
	<testResources>
		<testResource>
			<directory>src/test</directory>
			<excludes>
				<exclude>**/*.java</exclude>
			</excludes>
		</testResource>
		<testResource>
			<filtering>false</filtering>
			<directory>TestFiles</directory>
			<includes>
				<include>**/*</include>
			</includes>
		</testResource>
	</testResources>
	<plugins>
		<plugin>
			<groupId>org.sonatype.central</groupId>
			<artifactId>central-publishing-maven-plugin</artifactId>
			<version>0.9.0</version>
			<extensions>true</extensions>
			<configuration>
				<publishingServerId>central</publishingServerId>
			</configuration>
		</plugin>
	    <plugin>
	      <groupId>org.apache.maven.plugins</groupId>
	      <artifactId>maven-release-plugin</artifactId>
	      <version>3.2.0</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>
			<version>${dependency-check-maven.version}</version>
		</plugin>	
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>3.14.1</version>
			<configuration>
				<source>1.8</source>
				<target>1.8</target>
				<encoding>${project.build.sourceEncoding}</encoding>
				<showDeprecation>true</showDeprecation>
				<showWarnings>true</showWarnings>
				<optimize>true</optimize>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.spdx</groupId>
				<artifactId>spdx-maven-plugin</artifactId>
				<version>1.0.3</version>
				<executions>
					<execution>
						<id>build-spdx</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>createSPDX</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<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

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.</defaultFileNotice>
				<licenseDeclared>Apache-2.0</licenseDeclared>
				<licenseConcluded>Apache-2.0</licenseConcluded>
				<creators>
					<param>Person: Gary O'Neall</param>
				</creators>
				<originator>Organization: Linux Foundation</originator>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.sonarsource.scanner.maven</groupId>
			<artifactId>sonar-maven-plugin</artifactId>
			<version>5.3.0.6276</version>
		</plugin>
	</plugins>
  </build>
  <reporting>
   	<plugins>
   		<plugin>
     		<groupId>org.codehaus.mojo</groupId>
     		<artifactId>findbugs-maven-plugin</artifactId>
     		<version>3.0.5</version>
   		</plugin>
   	</plugins>
  </reporting>
</project>
