<!--
 Copyright (c) Microsoft Corporation. All rights reserved.
 Licensed under the MIT License. See License.txt in the project root for
 license information.
-->
<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>
  <parent>
    <groupId>com.azure</groupId>
    <artifactId>azure-data-sdk-parent</artifactId>
    <version>1.3.0</version> <!-- {x-version-update;com.azure:azure-data-sdk-parent;current} -->
    <relativePath>../../parents/azure-data-sdk-client</relativePath>
  </parent>

  <groupId>com.microsoft.azure</groupId>
  <artifactId>azure-keyvault-extensions</artifactId>
  <version>1.2.4</version> <!-- {x-version-update;com.microsoft.azure:azure-keyvault-extensions;current} -->
  <packaging>jar</packaging>

  <name>Microsoft Azure SDK for Key Vault Extensions</name>
  <description>
    This library has been replaced by new Azure SDKs, you can read about them at https://aka.ms/azsdkvalueprop. The latest libraries to interact with the Azure KeyVault service are:${line.separator}
    1. https://search.maven.org/artifact/com.azure/azure-security-keyvault-keys${line.separator}
    2. https://search.maven.org/artifact/com.azure/azure-security-keyvault-secrets${line.separator}
    3. https://search.maven.org/artifact/com.azure/azure-security-keyvault-certificates${line.separator}
    It is recommended that you move to the new package.
  </description>
  <url>https://github.com/Azure/azure-sdk-for-java</url>

  <distributionManagement>
    <site>
      <id>azure-java-build-docs</id>
      <url>${site.url}/site/${project.artifactId}</url>
    </site>
  </distributionManagement>

  <scm><url>https://github.com/Azure/azure-sdk-for-java</url></scm>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <legal><![CDATA[[INFO] Any downloads listed may be third party software.  Microsoft grants you no rights for third party software.]]></legal>
  </properties>

  <dependencies>
    <!-- COMPILE DEPENDENCIES -->
    <!-- Microsoft Azure KeyVault Dependencies -->
    <dependency>
    	<groupId>com.microsoft.azure</groupId>
    	<artifactId>azure-keyvault-webkey</artifactId>
      <version>1.2.4</version> <!-- {x-version-update;com.microsoft.azure:azure-keyvault-webkey;current} -->
    </dependency>
    <dependency>
    	<groupId>com.microsoft.azure</groupId>
    	<artifactId>azure-keyvault-core</artifactId>
      <version>1.2.4</version> <!-- {x-version-update;com.microsoft.azure:azure-keyvault-core;current} -->
    </dependency>
    <dependency>
    	<groupId>com.microsoft.azure</groupId>
    	<artifactId>azure-keyvault-cryptography</artifactId>
      <version>1.2.4</version> <!-- {x-version-update;com.microsoft.azure:azure-keyvault-cryptography;current} -->
    </dependency>
    <dependency>
    	<groupId>com.microsoft.azure</groupId>
    	<artifactId>azure-keyvault</artifactId>
      <version>1.2.4</version> <!-- {x-version-update;com.microsoft.azure:azure-keyvault;current} -->
    </dependency>

    <!-- Other Microsoft Azure Dependencies -->
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-mgmt-resources</artifactId>
      <version>1.3.0</version> <!-- {x-version-update;com.microsoft.azure:azure-mgmt-resources;external_dependency} -->
    </dependency>

    <!-- Other Microsoft Dependencies -->
    <dependency>
      <groupId>com.microsoft.rest</groupId>
      <artifactId>client-runtime</artifactId>
      <version>1.7.4</version> <!-- {x-version-update;com.microsoft.rest:client-runtime;external_dependency} -->
    </dependency>

    <!-- Other Dependencies -->
    <dependency>
    	<groupId>com.google.guava</groupId>
    	<artifactId>guava</artifactId>
     <version>24.1.1-jre</version> <!-- {x-version-update;com.google.guava:guava;external_dependency} -->
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      <version>3.8.1</version> <!-- {x-version-update;org.apache.commons:commons-lang3;external_dependency} -->
    </dependency>
    <dependency>
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.13</version> <!-- {x-version-update;commons-codec:commons-codec;external_dependency} -->
    </dependency>


    <!-- TEST DEPENDENCIES -->
    <!-- Other Microsoft Azure Dependencies -->
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-mgmt-resources</artifactId>
      <version>1.3.1-SNAPSHOT</version> <!-- {x-version-update;test_jar_com.microsoft.azure:azure-mgmt-resources;external_dependency} -->
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>adal4j</artifactId>
      <version>1.6.5</version> <!-- {x-version-update;com.microsoft.azure:adal4j;external_dependency} -->
      <scope>test</scope>
    </dependency>

    <!-- Other Dependencies -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13-beta-3</version> <!-- {x-version-update;junit:junit;external_dependency} -->
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcprov-jdk15on</artifactId>
      <version>1.60</version> <!-- {x-version-update;org.bouncycastle:bcprov-jdk15on;external_dependency} -->
      <scope>test</scope>
    </dependency>
    <dependency>
    	<groupId>org.mockito</groupId>
    	<artifactId>mockito-core</artifactId>
    	<version>1.10.19</version> <!-- {x-version-update;keyvault_org.mockito:mockito-core;external_dependency} -->
    	<scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>9.3.22.v20171030</version> <!-- {x-version-update;org.eclipse.jetty:jetty-maven-plugin;external_dependency} -->
        <configuration>
          <scanIntervalSeconds>0</scanIntervalSeconds>
          <stopPort>11079</stopPort>
          <stopKey>stop-azure-keyvault-extensions</stopKey>
          <stopWait>20</stopWait>
          <waitForChild>false</waitForChild>
          <jettyXml>../../../jetty.xml</jettyXml>
        </configuration>
        <executions>
          <execution>
            <id>start-jetty</id>
            <phase>process-test-classes</phase>
            <goals>
              <goal>run-forked</goal>
            </goals>
            <configuration>
             <scanIntervalSeconds>0</scanIntervalSeconds>
             <daemon>true</daemon>
            </configuration>
          </execution>
          <execution>
            <id>stop-jetty</id>
            <phase>post-integration-test</phase>
            <goals>
              <goal>stop</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.1.2</version> <!-- {x-version-update;org.apache.maven.plugins:maven-jar-plugin;external_dependency} -->
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>3.0.0</version> <!-- {x-version-update;org.codehaus.mojo:build-helper-maven-plugin;external_dependency} -->
      </plugin>

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