<?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>co.fingerprintsoft</groupId>
  <artifactId>starters-parent</artifactId>
  <version>2.5.0</version>
  <packaging>pom</packaging>
  <name>starters-parent</name>
  <description>Parent pom file for spring starters</description>
  <url>https://bitbucket.org/fingerprintsoft/spring-starters/overview</url>

  <scm>
    <url>https://bitbucket.org/fingerprintsoft/spring-starters.git</url>
    <developerConnection>scm:git:git@bitbucket.org:fingerprintsoft/spring-starters.git</developerConnection>
  </scm>

  <distributionManagement>
    <repository>
      <id>fingerprints.maven</id>
      <name>Fingerprints Maven Repo</name>
      <url>https://maven.fingerprintsoft.co/repository/maven-releases/</url>
    </repository>
    <snapshotRepository>
      <id>fingerprints.maven.snapshots</id>
      <name>Fingerprints Maven Snapshot Repo</name>
      <url>https://maven.fingerprintsoft.co/repository/maven-snapshots/</url>
    </snapshotRepository>
  </distributionManagement>

  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <developers>
    <developer>
      <id>fuzails</id>
      <name>Fuzail Sarang</name>
      <email>fuzail@fingerprintsoft.org</email>
      <organization>Fingerprints Software (Pty) Ltd.</organization>
      <organizationUrl>http://www.fingerprintsoft.co.com</organizationUrl>
      <roles>
        <role>Project-Administrator</role>
        <role>Developer</role>
      </roles>
      <timezone>+2</timezone>
    </developer>
  </developers>

  <properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <gitflow.auto.version>false</gitflow.auto.version>
    <gitflow.squash>false</gitflow.squash>
    <gitflow.no.deploy>true</gitflow.no.deploy>
    <gitflow.pull.develop>true</gitflow.pull.develop>
    <gitflow.pull.master>true</gitflow.pull.master>
    <lombok.version>1.18.20</lombok.version>
    <slf4j-api.version>1.7.30</slf4j-api.version>
    <unirest-java.version>1.4.9</unirest-java.version>
    <jackson.version>2.12.3</jackson.version>
    <spring-boot.version>2.5.0</spring-boot.version>
    <pushy.version>0.8.1</pushy.version>
    <netty-tcnative.version>2.0.39.Final</netty-tcnative.version>
    <netty.version>4.1.65.Final</netty.version>
    <junit.version>4.13.2</junit.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>${lombok.version}</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>${slf4j-api.version}</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>${junit.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>external.atlassian.jgitflow</groupId>
        <artifactId>jgitflow-maven-plugin</artifactId>
        <version>1.0-m5.1</version>
        <configuration>
          <pushFeatures>true</pushFeatures>
          <pushHotfixes>true</pushHotfixes>
          <pushReleases>true</pushReleases>
          <enableSshAgent>true</enableSshAgent>
          <autoVersionSubmodules>${gitflow.auto.version}</autoVersionSubmodules>
          <squash>${gitflow.squash}</squash>
          <noDeploy>${gitflow.no.deploy}</noDeploy>
          <pullDevelop>${gitflow.pull.develop}</pullDevelop>
          <pullMaster>${gitflow.pull.master}</pullMaster>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.7.0</version>
        <configuration>
          <source>${maven.compiler.source}</source>
          <target>${maven.compiler.target}</target>
        </configuration>
      </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.0.0-M1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>release</id>
      <distributionManagement>
        <repository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
      </distributionManagement>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <configuration>
              <keyname>66088AB407BEF0743FD002741C5117CFE2406B77</keyname>
            </configuration>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.8</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
              <skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
              <skipStaging>false</skipStaging>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
