<?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.adobe.documentservices</groupId>
  <artifactId>pdfservices-sdk</artifactId>
  <version>2.1.0</version>
  <name>PDF Services SDK</name>

  <developers>
    <developer>
      <id>Adobe</id>
      <name>Adobe</name>
      <organization>Adobe</organization>
    </developer>
  </developers>
  <scm>
    <url>${scm.url}</url>
  </scm>

  <organization>
    <name>Adobe</name>
    <url>https://www.adobe.com</url>
  </organization>

  <description>Adobe PDF Services SDK allows you to access RESTful APIs to create, convert, and manipulate PDFs within your applications.
    Older versions can be found under groupId: com.adobe.documentservices, artifactId: pdftools-sdk</description>

  <url>http://www.adobe.com/go/pdftoolsapi_doc</url>

  <licenses>
    <license>
      <name>License Agreement</name>
      <url>http://adobe.com/go/terms</url>
      <distribution>repo</distribution>
    </license>
  </licenses>


  <properties>
    <tessa.version>3.0.8</tessa.version>
    <hibernate.validator.version>6.1.3.Final</hibernate.validator.version>
    <bouncycastle.version>1.60</bouncycastle.version>
    <httpcomponents.version>4.5.12</httpcomponents.version>
  </properties>

  <dependencies>

    <!--Library for logging abstraction-->
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.26</version>
    </dependency>

    <!--    Library for defining slf4j binding with log4j for debugging while developing,
    will not be included in the shipped jar-->
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <version>2.9.0</version>
      <scope>test</scope>
    </dependency>


    <!--Library for json serialization and deserialization-->
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.10.3</version>
    </dependency>

    <!--Library for HTTP client and API calls-->
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient</artifactId>
      <version>${httpcomponents.version}</version>
    </dependency>

    <!--Library which supports request builders for apache http client-->
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpmime</artifactId>
      <version>${httpcomponents.version}</version>
    </dependency>

    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-collections4</artifactId>
      <version>4.4</version>
    </dependency>

    <!--Library for uri template handling-->
    <dependency>
      <groupId>com.damnhandy</groupId>
      <artifactId>handy-uri-templates</artifactId>
      <version>2.1.7</version>
    </dependency>

    <!--Library for supporting HTTP retries-->
    <dependency>
      <groupId>net.jodah</groupId>
      <artifactId>failsafe</artifactId>
      <version>2.0.1</version>
    </dependency>

    <!-- Library for util operations on file like fetching base name and extension, moving and copying -->
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.7</version>
    </dependency>

    <!-- Library creating and signing the jwt in service authentication API calls-->
    <dependency>
      <groupId>com.nimbusds</groupId>
      <artifactId>nimbus-jose-jwt</artifactId>
      <version>8.19</version>
    </dependency>

    <!--    Library for parsing private keys for JWT authentication -->
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcpkix-jdk15on</artifactId>
      <version>${bouncycastle.version}</version>
    </dependency>

    <!-- Dependencies for Client Side bean validations -->
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-validator</artifactId>
      <version>${hibernate.validator.version}</version>
    </dependency>
    <dependency>
      <groupId>javax.el</groupId>
      <artifactId>javax.el-api</artifactId>
      <version>3.0.0</version>
    </dependency>
    <dependency>
      <groupId>org.glassfish.web</groupId>
      <artifactId>javax.el</artifactId>
      <version>2.2.6</version>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-validator-cdi</artifactId>
      <version>${hibernate.validator.version}</version>
    </dependency>

    <!-- Dependency to support multipart response parsing -->
    <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4.7</version>
    </dependency>

    <!-- Dependency for parsing JSON  -->
    <dependency>
      <groupId>org.json</groupId>
      <artifactId>json</artifactId>
      <version>20180130</version>
    </dependency>

    <!--Test Related Dependencies-->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>6.14.3</version>
      <scope>test</scope>
    </dependency>

    <!--PDF To Image Conversion Dependencies-->
    <dependency>
      <groupId>org.apache.pdfbox</groupId>
      <artifactId>pdfbox</artifactId>
      <version>2.0.24</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.pdfbox</groupId>
      <artifactId>fontbox</artifactId>
      <version>2.0.24</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.2</version>
      <scope>test</scope>
    </dependency>

    <!--Image Comparison Dependency-->
    <dependency>
      <groupId>com.github.romankh3</groupId>
      <artifactId>image-comparison</artifactId>
      <version>4.3.0</version>
      <scope>test</scope>
    </dependency>

  </dependencies>


  <profiles>
    <profile>
      <id>release</id>
      <properties>
        <scm.url>https://github.com/adobe/</scm.url>
        <dev.email>dcpfsdk@adobe.com</dev.email>
      </properties>
      <build>
        <plugins>
          <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>
                  <passphrase>${gpg.passphrase}</passphrase>
                </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>false</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>default</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <scm.url>https://git.corp.adobe.com/dc/pdftools-sdk</scm.url>
        <dev.email>Grp-Andes@adobe.com</dev.email>
      </properties>
    </profile>
  </profiles>

  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>8</source>
          <target>8</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <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>3.1.0</version>
        <executions>
          <execution>
            <goals>
              <goal>javadoc</goal>
              <goal>jar</goal>
            </goals>
            <configuration>
              <windowtitle>Adobe PDF Services SDK Specification</windowtitle>
              <doctitle>Adobe PDF Services SDK Specification</doctitle>
              <header>PDF Services SDK</header>
              <outputDirectory>${basedir}/docs</outputDirectory>
              <reportOutputDirectory>${basedir}/docs</reportOutputDirectory>
              <excludePackageNames>com.adobe.pdfservices.operation.internal</excludePackageNames>
              <subpackages>
                com.adobe.pdfservices.operation:com.adobe.pdfservices.operation.pdfops:com.adobe.pdfservices.operation.exception:com.adobe.pdfservices.operation.io:
              </subpackages>
              <show>public</show>
            </configuration>
          </execution>

        </executions>

      </plugin>
      <plugin>
        <groupId>com.adobe.sharedcloud</groupId>
        <artifactId>tessa-maven-plugin</artifactId>
        <version>${tessa.version}</version>
        <configuration>
          <host>snitch.corp.adobe.com</host>
          <versionProviderConfig>
            <strategyType>maven</strategyType>
          </versionProviderConfig>
        </configuration>
        <!-- It is recommended to execute it explicitly instead of binding with maven goals,
         thus, it gets executed explicitly in deploy-maven.sh -->
      </plugin>

    </plugins>
  </build>
</project>
