<?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>

    <!-- Correct Coordinates -->
    <groupId>de.clusterfreak</groupId>
    <artifactId>ClusterCore</artifactId>
    <version>1.1.0</version>
    <packaging>jar</packaging>

    <!-- Project Name, Description and URL -->
    <name>${project.artifactId}</name>
    <description>Core classes for cluster analysis</description>
    <url>https://github.com/clusterfreak/ClusterCore</url>

    <!-- License Information -->
    <licenses>
      <license>
        <name>MIT License</name>
        <url>http://www.opensource.org/licenses/mit-license.php</url>
      </license>
    </licenses>

    <!-- Distribution Management -->
    <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>

    <!-- Developer Information -->
    <developers>
        <developer>
          <name>Thomas Heym</name>
          <email>thomas.heym@clusterfreak.de</email>
          <organization>Clusterfreak</organization>
          <organizationUrl>https://clusterfreak.de</organizationUrl>
        </developer>
      </developers>

    <!-- SCM Information -->
    <scm>
        <connection>scm:git:git://github.com/clusterfreak/ClusterCore.git</connection>
        <developerConnection>scm:git:ssh://github.com:clusterfreak/ClusterCore.git</developerConnection>
        <url>http://github.com/clusterfreak/ClusterCore/tree/master</url>
    </scm>

    <!-- Java Version -->
    <properties>
          <maven.compiler.release>14</maven.compiler.release>
          <maven.compiler.source>14</maven.compiler.source>
          <maven.compiler.target>14</maven.compiler.target>
          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <version>3.8.1</version>
                    </plugin>
                    <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-source-plugin</artifactId>
                          <version>2.2.1</version>
                          <executions>
                            <execution>
                              <id>attach-sources</id>
                              <goals>
                                <goal>jar-no-fork</goal>
                              </goals>
                            </execution>
                          </executions>
                        </plugin>
                        <plugin>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-javadoc-plugin</artifactId>
                          <version>2.9.1</version>
                          <configuration>
                              <source>8</source>
                              <detectJavaApiLink>false</detectJavaApiLink>
                            </configuration>
                          <executions>
                            <execution>
                              <id>attach-javadocs</id>
                              <goals>
                                <goal>jar</goal>
                              </goals>
                            </execution>
                          </executions>
                        </plugin>
                        <plugin>
                              <groupId>org.apache.maven.plugins</groupId>
                              <artifactId>maven-gpg-plugin</artifactId>
                              <version>1.5</version>
                              <executions>
                                <execution>
                                  <id>sign-artifacts</id>
                                  <phase>verify</phase>
                                  <goals>
                                    <goal>sign</goal>
                                  </goals>
                                  <configuration>

                                          <gpgArguments>
                                            <arg>--no-permission-warning</arg>
                                            <arg>--pinentry-mode</arg>
                                            <arg>loopback</arg>
                                          </gpgArguments>
                                        </configuration>
                                </execution>
                              </executions>
                        </plugin>
                        <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>
                </plugins>
        </build>
</project>