<?xml version="1.0" encoding="UTF-8"?>
<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.granitesoft</groupId>
   <artifactId>requirement</artifactId>
   <version>1.5</version>
   <name>Requirement</name>
   <url>https://github.com/ericgoffster/requirement</url>
   <description>Java code for the requirement package.  The requirements package defines
      a system for making requirements(or assertions) that can be used and packaged in a versatile ways.
      Code is designed to be enterprise-ready with 100% backwards compatibility and an eye to being CVE-free.</description>
   <licenses>
     <license>
       <name>Mozilla Public License Version 2.0</name>
       <url>https://www.mozilla.org/media/MPL/2.0/index.815ca599c9df.txt</url>
       <distribution>repo</distribution>
       <comments>A business-friendly OSS license</comments>
     </license>
   </licenses>
   <developers>
      <developer>
         <id>goffster</id>
         <name>Eric Goff</name>
         <email>goffster@gmail.com</email>
         <roles>
           <role>architect</role>
           <role>developer</role>
         </roles>
         <timezone>America/Chicago</timezone>
      </developer>
   </developers>
   <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   </properties>
   <scm>
      <connection>scm:git:git://github.com/ericgoffster/requirement.git</connection>
      <developerConnection>scm:git:git@github.com:ericgoffster/requirement.git</developerConnection>
      <url>https://github.com/ericgoffster/requirement</url>
      <tag>requirement-1.5</tag>
   </scm>
   <dependencies>
      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>4.13</version>
         <scope>test</scope>
      </dependency>
   </dependencies>
   <distributionManagement>
      <snapshotRepository>
         <id>ossrh</id>
         <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      </snapshotRepository>
      <repository>
         <id>ossrh</id>
         <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
      </repository>
   </distributionManagement>
   <profiles>
      <profile>
         <id>release-sign-artifacts</id>
         <activation>
            <property>
               <name>performRelease</name>
               <value>true</value>
            </property>
         </activation>
         <build>
            <plugins>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-gpg-plugin</artifactId>
                  <version>1.6</version>
                  <executions>
                     <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                        <goal>sign</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>
   <build>
      <resources>
         <resource>
            <directory>src/main/java</directory>
            <filtering>false</filtering>
         </resource>
         <resource>
            <directory>src/test/java</directory>
            <filtering>false</filtering>
         </resource>
      </resources>
      <plugins>
          <plugin>
              <groupId>org.sonatype.plugins</groupId>
              <artifactId>nexus-staging-maven-plugin</artifactId>
              <version>1.6.7</version>
              <extensions>true</extensions>
              <configuration>
                  <serverId>ossrh</serverId>
                  <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                  <autoReleaseAfterClose>true</autoReleaseAfterClose>
              </configuration>
          </plugin>
         <plugin>
            <artifactId>maven-deploy-plugin</artifactId>
            <version>2.8.2</version>
            <executions>
               <execution>
                  <id>default-deploy</id>
                  <phase>deploy</phase>
                  <goals>
                     <goal>deploy</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.0.1</version>
            <executions>
               <execution>
                  <id>attach-sources</id>
                  <goals>
                     <goal>jar</goal>
                  </goals>
               </execution>  
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
            <executions>
               <execution>
                  <id>attach-javadocs</id>
                  <goals>
                     <goal>jar</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
               <source>1.8</source>
               <target>1.8</target>
               <compilerArgs>
                  <compilerArg>-Xlint:all,-processing</compilerArg>
                  <compilerArg>-Werror</compilerArg>
               </compilerArgs>
               <showWarnings>true</showWarnings>
            </configuration>
         </plugin>
      </plugins>
   </build>
</project>
