<?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>com.github.pxav.kelp</groupId>
  <artifactId>parent</artifactId>
  <packaging>pom</packaging>
  <version>0.3.1</version>

  <name>Kelp</name>
  <description>A cross-version spigot framework to avoid boilerplate code and make your plugin compatible with multiple spigot versions easily</description>
  <url>https://www.github.com/PXAV/kelp</url>

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

  <developers>
    <developer>
      <name>PXAV</name>
      <organization>com.github.pxav</organization>
      <organizationUrl>https://www.github.com/PXAV</organizationUrl>
    </developer>
    <developer>
      <name>Etrayed</name>
      <organization>com.github.etrayed</organization>
      <organizationUrl>https://www.github.com/Etrayed</organizationUrl>
    </developer>
    <developer>
      <name>Paul</name>
      <organization>com.github.paul2708</organization>
      <organizationUrl>https://www.github.com/Paul2708</organizationUrl>
    </developer>
    <developer>
      <name>Shatuxy</name>
      <organization>com.github.shatuxy</organization>
      <organizationUrl>https://www.github.com/Shatuxy</organizationUrl>
    </developer>
  </developers>

  <scm>
    <connection>scm:git:git://github.com/PXAV/kelp.git</connection>
    <developerConnection>scm:git:ssh://github.com:PXAV/kelp.git</developerConnection>
    <url>http://github.com/PXAV/kelp/tree/master</url>
  </scm>

  <modules>
    <module>core</module>
    <module>v1_8_implementation</module>
    <module>testing-module</module>
    <module>v_1_14_implementation</module>
    <module>kelp-sql</module>
  </modules>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.google.inject</groupId>
        <artifactId>guice</artifactId>
        <version>4.0</version>
        <exclusions>
          <exclusion>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <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>
      <!-- This plugin is only used when a deployment to the Maven Central Repo is done.
     But only project administrators have the authorization to execute deployments.
     It can be activated by using mvn clean deploy -P central-deploy

     1) Remember to disable the shade plugin in the parent pom before deploying.
     2) Check whether public keys are available:
       gpg (-)-keyserver hkp://keyserver.ubuntu.com (-)-search-key 'pxav.studios@gmail.com'
     -->
    <profile>
      <id>central-deploy</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <pluginManagement>
          <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>
              <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>
              <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>
                </execution>
              </executions>
            </plugin>
          </plugins>
        </pluginManagement>

        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>install</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
            <inherited>false</inherited>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <build>
    <pluginManagement>
      <plugins>
<!--        <plugin>-->
<!--          <groupId>org.apache.maven.plugins</groupId>-->
<!--          <artifactId>maven-shade-plugin</artifactId>-->
<!--          <version>2.4.3</version>-->
<!--          <executions>-->
<!--            <execution>-->
<!--              <phase>package</phase>-->
<!--              <goals>-->
<!--                <goal>shade</goal>-->
<!--              </goals>-->
<!--              <configuration>-->
<!--                <filters>-->
<!--                  <filter>-->
<!--                    <artifact>*:*</artifact>-->
<!--                    <excludes>-->
<!--                      <exclude>META-INF/*.SF</exclude>-->
<!--                      <exclude>META-INF/*.DSA</exclude>-->
<!--                      <exclude>META-INF/*.RSA</exclude>-->
<!--                    </excludes>-->
<!--                  </filter>-->
<!--                </filters>-->
<!--                <createDependencyReducedPom>false</createDependencyReducedPom>-->
<!--                <shadedArtifactAttached>true</shadedArtifactAttached>-->
<!--                <finalName>${project.artifactId}-${project.version}-shaded</finalName>-->
<!--                <outputDirectory>../builds</outputDirectory>-->
<!--              </configuration>-->
<!--            </execution>-->
<!--          </executions>-->
<!--        </plugin>-->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.1</version>
          <configuration>
            <source>8</source>
            <target>8</target>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.9.1</version>
          <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>2.3.2</version>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

</project>