<?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.azure</groupId>
  <artifactId>azure-identity</artifactId>
  <version>1.0.5</version> <!-- {x-version-update;com.azure:azure-identity;current} -->

  <name>Microsoft Azure client library for Identity</name>
  <description>This module contains client library for Microsoft Azure Identity.</description>
  <url>https://github.com/Azure/azure-sdk-for-java</url>

  <parent>
    <groupId>com.azure</groupId>
    <artifactId>azure-client-sdk-parent</artifactId>
    <version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
    <relativePath>../../../pom.client.xml</relativePath>
  </parent>


  <build>
    <plugins>
      <plugin>
        <groupId>org.revapi</groupId>
        <artifactId>revapi-maven-plugin</artifactId>
        <version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
        <configuration>
        <analysisConfiguration>
          <revapi.ignore combine.children="append">
            <item>
              <code>java.method.added</code>
              <class>com.azure.core.http.ProxyOptions</class>
              <justification>The new API added in azure core can be ignored, as it doesn't break the API. </justification>
            </item>
          </revapi.ignore>
        </analysisConfiguration>
        </configuration>
      </plugin>
      
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-enforcer-plugin</artifactId>
          <version>3.0.0-M3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-enforcer-plugin;external_dependency} -->
          <executions>
              <execution>
                  <id>default-cli</id>
                  <goals>
                      <goal>enforce</goal>
                  </goals>
                  <configuration>
                      <rules>
                          <bannedDependencies>
                              <searchTransitive>false</searchTransitive>
                              <excludes>
                                  <!-- We exclude everything that is runtime-time, compile-time, or provided scoped (i.e. we allow
                                   dependencies when they are used for test scope or otherwise) -->
                                  <exclude>*:*:*:*:runtime</exclude>
                                  <exclude>*:*:*:*:compile</exclude>
                                  <exclude>*:*:*:*:provided</exclude>
                              </excludes>
                              <includes>
                                  <include>com.azure:*</include>
                                  <include>com.nimbusds:oauth2-oidc-sdk</include>
                                  <include>com.microsoft.azure:msal4j</include>
                                  <include>org.nanohttpd:nanohttpd</include>
                                  <include>net.java.dev.jna</include>
                              </includes>
                          </bannedDependencies>
                      </rules>
                  </configuration>
              </execution>
          </executions>
      </plugin>
    </plugins>
  </build>


  <dependencies>
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-core</artifactId>
      <version>1.4.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
    </dependency>
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>msal4j</artifactId>
      <version>0.5.0-preview</version> <!-- {x-version-update;com.microsoft.azure:msal4j;external_dependency} -->
    </dependency>
    <dependency>
      <groupId>com.nimbusds</groupId>
      <artifactId>oauth2-oidc-sdk</artifactId>
      <version>6.14</version> <!-- {x-version-update;com.nimbusds:oauth2-oidc-sdk;external_dependency} -->
    </dependency>
    <dependency>
      <groupId>org.nanohttpd</groupId>
      <artifactId>nanohttpd</artifactId>
      <version>2.3.1</version> <!-- {x-version-update;org.nanohttpd:nanohttpd;external_dependency} -->
    </dependency>

    <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.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>3.0.0</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} -->
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-module-junit4</artifactId>
      <version>2.0.2</version> <!-- {x-version-update;org.powermock:powermock-module-junit4;external_dependency} -->
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-api-mockito2</artifactId>
      <version>2.0.2</version> <!-- {x-version-update;org.powermock:powermock-api-mockito2;external_dependency} -->
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna-platform</artifactId>
      <version>5.4.0</version> <!-- {x-version-update;net.java.dev.jna:jna-platform;external_dependency} -->
    </dependency>
    <dependency>
      <groupId>io.projectreactor</groupId>
      <artifactId>reactor-test</artifactId>
      <version>3.3.3.RELEASE</version> <!-- {x-version-update;io.projectreactor:reactor-test;external_dependency} -->
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
