<?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">
  <parent>
    <artifactId>wire4-sdk</artifactId>
    <groupId>mx.wire4.sdk</groupId>
    <version>1.1.2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>wire4-api-sdk</artifactId>
  <name>Wire4 api sdk</name>
  <version>1.1.2</version>
  <description>Integrated Wire4 components</description>
  <url>https://github.com/wire4/wire4-api-sdk-java</url>
  <developers>
    <developer>
      <name>speiok.team</name>
      <email>speiok.team@tcpip.tech</email>
      <organization>wire4</organization>
      <organizationUrl>https://wire4.mx/</organizationUrl>
    </developer>
  </developers>
  <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>
  <scm>
    <connection>scm:git:git://github.com/wire4/wire4-api-sdk-java.git</connection>
    <developerConnection>scm:git:ssh://github.com:wire4/wire4-api-sdk-java.git</developerConnection>
    <url>https://github.com/wire4/wire4-api-sdk-java/tree/master</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <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.7</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>ossrh</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <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>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <minimizeJar>false</minimizeJar>
          <createDependencyReducedPom>true</createDependencyReducedPom>
          <filters>
            <filter>
              <artifact>mx.wire4.sdk:*</artifact>
              <includes>
                <include>**</include>
              </includes>
            </filter>
          </filters>
          <relocations>
            <relocation>
              <pattern>org.dmfs</pattern>
              <shadedPattern>shaded.dmfs</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.squareup.okhttp</pattern>
              <shadedPattern>shaded.okhttp</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.google.gson</pattern>
              <shadedPattern>shaded.go.gson</shadedPattern>
            </relocation>
            <relocation>
              <pattern>io.gsonfire</pattern>
              <shadedPattern>shaded.gsonfire</shadedPattern>
            </relocation>
            <relocation>
              <pattern>net.iharder</pattern>
              <shadedPattern>shaded.iharder</shadedPattern>
            </relocation>
            <relocation>
              <pattern>okio</pattern>
              <shadedPattern>shaded.okio</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.json</pattern>
              <shadedPattern>shaded.json</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.commons</pattern>
              <shadedPattern>shaded.commons.apache</shadedPattern>
            </relocation>
            <relocation>
              <pattern>commons-codec</pattern>
              <shadedPattern>shaded.commons-codec</shadedPattern>
            </relocation>
            <relocation>
              <pattern>io.swagger</pattern>
              <shadedPattern>shaded.swagger</shadedPattern>
            </relocation>
          </relocations>
          <transformers>
            <transformer>
              <mainClass>mx.wire4.auth.OAuthWire4</mainClass>
            </transformer>
            <transformer />
            <transformer />
          </transformers>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <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>
    <wire4.authenticator.version>1.1.2</wire4.authenticator.version>
    <nexus.openpay.snapshot.url>http://nexus.openpay.mx:8081/nexus/content/repositories/snapshots/</nexus.openpay.snapshot.url>
    <java.version>1.8</java.version>
    <nexus.tcpip.repository.url>http://nexus.tcpip.tech/nexus/content/repositories/releases/</nexus.tcpip.repository.url>
    <maven.compiler.source>${java.version}</maven.compiler.source>
    <nexus.tcpip.snapshot.url>http://nexus.tcpip.tech/nexus/content/repositories/snapshots/</nexus.tcpip.snapshot.url>
    <nexus.openpay.repository.url>http://nexus.openpay.mx:8081/nexus/content/repositories/releases/</nexus.openpay.repository.url>
    <wire4.sdk-client.version>1.1.2</wire4.sdk-client.version>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <maven.compiler.target>${java.version}</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <skipTests>true</skipTests>
  </properties>
</project>
