<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/maven-v4_0_0.xsd">
  
  <parent>
    <groupId>org.nerd4j</groupId>
    <artifactId>nerd4j-base</artifactId>
    <version>2.0.0</version>
  </parent>
  
  <modelVersion>4.0.0</modelVersion>

  <artifactId>nerd4j-utils</artifactId>
  <version>2.0.0</version>

  <packaging>jar</packaging>

  <name>Nerd4j Utils</name>
  <description>Useful utilities to handle the samey pesky code.</description>

  <url>http://www.nerd4j.org/utils/</url>

  <inceptionYear>2011</inceptionYear>

  <scm>
    <url>https://git-codecommit.us-east-1.amazonaws.com/v1/repos/nerd4j-utils</url>
    <connection>scm:git:ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/nerd4j-utils</connection>
    <developerConnection>scm:git:ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/nerd4j-utils</developerConnection>
    <tag>nerd4j-utils-2.0.0</tag>
  </scm>
  
  <dependencies>

    <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.6.0-M1</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-params</artifactId>
      <version>5.6.0-M1</version>
      <scope>test</scope>
    </dependency>

  </dependencies>


  <profiles>

    <!-- PROFILE TO BE USED TO PERFORM TESTS -->
    <profile>

      <id>test</id>

      <properties>
        <maven.test.skip>false</maven.test.skip>
      </properties>

      <build>

        <plugins>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
          </plugin>

        </plugins>

      </build>

    </profile>


    <!-- PROFILE TO BE USED DURING SONATYPE RELEASES -->
    <profile>

      <id>deploy</id>

      <build>

        <plugins>

          <!-- PLUG-IN TO ENSURE JAVADOC IS AVAILABLE IN RELEASE -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <phase>verify</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

          <!-- PLUG-IN FOR GPG SIGNATURE INTO JAR -->
          <!-- See: https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
          </plugin>

          <!-- SONATYPE RELEASE PLUGINS -->
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
          </plugin>

        </plugins>

      </build>

    </profile>

  </profiles>

</project>
