<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.spdx</groupId>
  <artifactId>spdx-java-core</artifactId>
  <version>1.0.0</version>
  <packaging>jar</packaging>
  <name>spdx-java-core</name>
  <description>Core libraries for SPDX</description>
  <url>https://github.com/spdx/spdx-java-core</url>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <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>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <name>spdx-spdx-tools</name>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>
  <scm>
    <url>https://github.com/spdx/spdx-java-core</url>
    <connection>scm:git:git://github.com/spdx/spdx-java-core.git</connection>
    <developerConnection>scm:git:git@github.com:spdx/spdx-java-core.git</developerConnection>
    <tag>v1.0.0</tag>
  </scm>
  <properties>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.build.outputTimestamp>1744933392</project.build.outputTimestamp>
    <sonar.host.url>https://sonarcloud.io</sonar.host.url>
    <sonar.organization>spdx-1</sonar.organization>
    <sonar.projectKey>spdx-java-core</sonar.projectKey>
    <dependency-check-maven.version>8.0.1</dependency-check-maven.version>
  </properties>
  <profiles>  
    <profile>
      <id>test</id>
      <dependencies>
        <dependency>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-slf4j2-impl</artifactId>
          <version>2.20.0</version>
          <scope>test</scope>
          <exclusions>
            <exclusion>
              <groupId>org.slf4j</groupId>
              <artifactId>slf4j-api</artifactId>
            </exclusion>
          </exclusions>
        </dependency>
      </dependencies>
    </profile>
 		<profile>
			<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>
						<version>3.1.0</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>
				</plugins>
			</build>
		</profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.1</version>
      <scope>test</scope>
    </dependency>
  	<dependency>
  		<groupId>com.google.code.findbugs</groupId>
  		<artifactId>jsr305</artifactId>
  		<version>3.0.2</version>
  	</dependency>
  	<dependency>
  		<groupId>org.slf4j</groupId>
  		<artifactId>slf4j-api</artifactId>
  		<version>2.0.3</version>
  	</dependency>
    <dependency>
    	<groupId>org.apache.commons</groupId>
    	<artifactId>commons-lang3</artifactId>
    	<version>3.5</version>
    </dependency>
    <dependency>
    	<groupId>org.jsoup</groupId>
    	<artifactId>jsoup</artifactId>
    	<version>1.15.3</version>
    </dependency>
  </dependencies>
  <build>
    <resources>
      <resource>
        <targetPath>resources</targetPath>
        <filtering>false</filtering>
        <directory>resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
      <resource>
        <targetPath>META-INF</targetPath>
        <filtering>false</filtering>
        <directory>.</directory>
        <includes>
          <include>LICENSE</include>
        </includes>
      </resource>
        <resource>
          <directory>src/main</directory>
          <excludes>
            <exclude>**/*.java</exclude>
          </excludes>
        </resource>
      </resources>
      <sourceDirectory>src/main/java</sourceDirectory>
      <testResources>
        <testResource>
          <directory>src/test</directory>
          <excludes>
            <exclude>**/*.java</exclude>
          </excludes>
        </testResource>
      </testResources>
	<plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.11.0</version>
        <configuration>
          <encoding>${project.build.sourceEncoding}</encoding>
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>
          <optimize>true</optimize>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>3.5.0</version>
        <executions>
          <execution>
			<id>add-source</id>
			<phase>generate-sources</phase>
			<goals>
				<goal>add-source</goal>
			</goals>
			<configuration>
				<sources>
					<source>generated/src/main/java</source>
				</sources>
			</configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.5.0</version>
        <configuration>
          <quiet>true</quiet>
          <notimestamp>true</notimestamp>
          <doclint>all,-missing</doclint>
        </configuration>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.3.0</version>
        <configuration>
          <archive>
              <manifestEntries>
                  <Automatic-Module-Name>org.spdx.core</Automatic-Module-Name>
              </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.3.0</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.7.4</version>
        <executions>
          <execution>
            <id>build-spdx</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>createSPDX</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <spdxDocumentNamespace>http://spdx.org/documents/spdx-java-core-${project.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");
  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: SPDX</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>
      <plugin>
        <groupId>org.owasp</groupId>
        <artifactId>dependency-check-maven</artifactId>
        <version>${dependency-check-maven.version}</version>
      </plugin>
	</plugins>
  </build>
</project>
