<?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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.exsoloscript.challonge</groupId>
  <artifactId>challonge-java</artifactId>
  <name>challonge-java</name>
  <version>1.0.1</version>
  <description>Java binding for the CHALLONGE! REST Api</description>
  <url>https://github.com/stefangeyer/challonge-java</url>
  <developers>
    <developer>
      <id>stefangeyer</id>
      <name>Stefan Geyer</name>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>MIT</name>
      <url>https://opensource.org/licenses/MIT</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/stefangeyer/challonge-java.git</connection>
    <developerConnection>scm:git:git@github.com/stefangeyer/challonge-java.git</developerConnection>
    <url>http://github.com/stefangeyer/challonge-java/tree/master</url>
  </scm>
  <build>
    <defaultGoal>clean install</defaultGoal>
    <resources>
      <resource>
        <targetPath>.</targetPath>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
        <includes>
          <include>LICENSE.txt</include>
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.5.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <artifactSet>
            <excludes>
              <exclude>junit:junit</exclude>
              <exclude>org.hamcrest:hamcrest-core</exclude>
            </excludes>
          </artifactSet>
          <minimizeJar>true</minimizeJar>
          <relocations>
            <relocation>
              <pattern>okhttp3</pattern>
              <shadedPattern>${project.groupId}.library.squareup.okhttp3</shadedPattern>
            </relocation>
            <relocation>
              <pattern>okio</pattern>
              <shadedPattern>${project.groupId}.library.squareup.okio</shadedPattern>
            </relocation>
            <relocation>
              <pattern>retrofit2</pattern>
              <shadedPattern>${project.groupId}.library.squareup.retrofit2</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.google</pattern>
              <shadedPattern>${project.groupId}.library.google</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.commons</pattern>
              <shadedPattern>${project.groupId}.library.commons</shadedPattern>
            </relocation>
            <relocation>
              <pattern>commons-codec</pattern>
              <shadedPattern>${project.groupId}.library.commons.codec</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.aopalliance</pattern>
              <shadedPattern>${project.groupId}.library.aopalliance</shadedPattern>
            </relocation>
          </relocations>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>sign-artifacts</id>
      <build>
        <plugins>
          <plugin>
            <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>
    <profile>
      <id>build-extras</id>
      <build>
        <plugins>
          <plugin>
            <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>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.9.1</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <additionalparam>-Xdoclint:none</additionalparam>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <additionalparam>-Xdoclint:none</additionalparam>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <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>
  <properties>
    <lombok.version>1.16.10</lombok.version>
    <junit.version>4.12</junit.version>
    <commons.codec.version>1.10</commons.codec.version>
    <commons.lang3.version>3.4</commons.lang3.version>
    <guice.version>4.1.0</guice.version>
    <retrofit.logging>3.3.1</retrofit.logging>
    <retrofit2.gson.version>2.1.0</retrofit2.gson.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <retrofit2.version>2.1.0</retrofit2.version>
  </properties>
</project>

