<?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>api-gateway-modules</artifactId>
    <groupId>com.mulesoft.anypoint</groupId>
    <version>4.11.4</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>mule-module-policies</artifactId>
  <name>API Gateway Policies Module</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-template</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>com.mulesoft.anypoint</groupId>
                  <artifactId>mule-gatekeeper-policy-template</artifactId>
                  <version>${project.version}</version>
                  <classifier>mule-policy</classifier>
                  <destFileName>mule-gatekeeper-policy-template-mule-policy.jar</destFileName>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${project.build.outputDirectory}</outputDirectory>
              <overWriteReleases>true</overWriteReleases>
              <overWriteSnapshots>true</overWriteSnapshots>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.5.2</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>com.github.jknack:handlebars</include>
                </includes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>com.github.jknack:handlebars</artifact>
                  <excludes>
                    <exclude>handlebars-v4.7.7.js</exclude>
                    <exclude>META-INF/maven/com.github.jknack/**</exclude>
                    <exclude>META-INF/maven/org.antlr/**</exclude>
                    <exclude>META-INF/MANIFEST.MF</exclude>
                  </excludes>
                </filter>
              </filters>
              <createDependencyReducedPom>true</createDependencyReducedPom>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>api-gateway-api</artifactId>
      <version>1.11.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>api-gateway-contract-service-api</artifactId>
      <version>1.8.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>api-gateway-core</artifactId>
      <version>4.11.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>mule-module-autodiscovery</artifactId>
      <version>4.11.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>api-gateway-client</artifactId>
      <version>4.11.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>mule-gatekeeper-policy-template</artifactId>
      <version>4.11.4</version>
      <classifier>mule-policy</classifier>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>mule-module-hdp</artifactId>
      <version>4.11.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.mule.runtime.modules</groupId>
      <artifactId>mule-module-http-policy</artifactId>
      <version>4.11.4</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>log4j-slf4j2-impl</artifactId>
          <groupId>org.apache.logging.log4j</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mule.runtime</groupId>
      <artifactId>mule-module-deployment-model</artifactId>
      <version>4.11.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.mule.runtime</groupId>
      <artifactId>mule-module-deployment-model-impl</artifactId>
      <version>4.11.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.mule.runtime</groupId>
      <artifactId>mule-module-deployment</artifactId>
      <version>4.11.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>api-gateway-backoff</artifactId>
      <version>1.7.4</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>tita-unit</artifactId>
      <version>4.15.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>httpmime</artifactId>
          <groupId>org.apache.httpcomponents</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mule-tests-functional</artifactId>
          <groupId>org.mule.tests</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mule-tests-runner</artifactId>
          <groupId>org.mule.tests</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hamcrest-library</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit</artifactId>
          <groupId>junit</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mockito-core</artifactId>
          <groupId>org.mockito</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jersey-server</artifactId>
          <groupId>org.glassfish.jersey.core</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jersey-container-jdk-http</artifactId>
          <groupId>org.glassfish.jersey.containers</groupId>
        </exclusion>
        <exclusion>
          <artifactId>spring-test</artifactId>
          <groupId>org.springframework</groupId>
        </exclusion>
        <exclusion>
          <artifactId>slf4j-test</artifactId>
          <groupId>com.github.valfirst</groupId>
        </exclusion>
        <exclusion>
          <artifactId>browsermob-core</artifactId>
          <groupId>net.lightbody.bmp</groupId>
        </exclusion>
        <exclusion>
          <artifactId>java-jwt</artifactId>
          <groupId>com.auth0</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>tita-reflection-unit</artifactId>
      <version>2.10.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>api-gateway-core</artifactId>
      <version>4.11.4</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>fluent-hc</artifactId>
      <version>4.5.13</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mule.apache.commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <version>3.1-14-MULE-001</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>commons-logging</artifactId>
          <groupId>commons-logging</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mule.tests</groupId>
      <artifactId>mule-tests-infrastructure</artifactId>
      <version>4.11.4</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>mule-activemq-broker</artifactId>
          <groupId>org.mule.tests</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mule-derby-all</artifactId>
          <groupId>org.mule.tests</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-exec</artifactId>
          <groupId>org.apache.commons</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-net</artifactId>
          <groupId>commons-net</groupId>
        </exclusion>
        <exclusion>
          <artifactId>awaitility</artifactId>
          <groupId>org.awaitility</groupId>
        </exclusion>
        <exclusion>
          <artifactId>ftpserver-core</artifactId>
          <groupId>org.apache.ftpserver</groupId>
        </exclusion>
        <exclusion>
          <artifactId>sshd-osgi</artifactId>
          <groupId>org.apache.sshd</groupId>
        </exclusion>
        <exclusion>
          <artifactId>sshd-scp</artifactId>
          <groupId>org.apache.sshd</groupId>
        </exclusion>
        <exclusion>
          <artifactId>sshd-sftp</artifactId>
          <groupId>org.apache.sshd</groupId>
        </exclusion>
        <exclusion>
          <artifactId>groovy</artifactId>
          <groupId>org.apache.groovy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>maven-invoker</artifactId>
          <groupId>org.apache.maven.shared</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit</artifactId>
          <groupId>junit</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>xmlunit</groupId>
      <artifactId>xmlunit</artifactId>
      <version>1.6</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>xml-apis</artifactId>
          <groupId>xml-apis</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mule.connectors</groupId>
      <artifactId>mule-http-connector</artifactId>
      <version>1.11.1</version>
      <classifier>mule-plugin</classifier>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>mule-sockets-connector</artifactId>
          <groupId>org.mule.connectors</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mule-module-cors-kernel</artifactId>
          <groupId>org.mule.modules</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>tita-tests-unit</artifactId>
      <version>2.10.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>log4j-core</artifactId>
          <groupId>org.apache.logging.log4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mule-tests-runner</artifactId>
          <groupId>org.mule.tests</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>tita-http-unit</artifactId>
      <version>2.10.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>tita-json-unit</artifactId>
          <groupId>com.mulesoft.anypoint</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>io.qameta.allure</groupId>
      <artifactId>allure-junit4</artifactId>
      <version>2.32.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>allure-java-commons</artifactId>
          <groupId>io.qameta.allure</groupId>
        </exclusion>
        <exclusion>
          <artifactId>allure-test-filter</artifactId>
          <groupId>io.qameta.allure</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.16.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-text</artifactId>
      <version>1.10.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.mule.tests</groupId>
      <artifactId>mule-tests-unit</artifactId>
      <version>4.11.4</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>mule-module-logging</artifactId>
          <groupId>org.mule.runtime.boot</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-params</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mockito-junit-jupiter</artifactId>
          <groupId>org.mockito</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hamcrest</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-pioneer</artifactId>
          <groupId>org.junit-pioneer</groupId>
        </exclusion>
        <exclusion>
          <artifactId>allure-junit5</artifactId>
          <groupId>io.qameta.allure</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mule-tests-model</artifactId>
          <groupId>org.mule.tests</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mockito-core</artifactId>
          <groupId>org.mockito</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit</artifactId>
          <groupId>junit</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <formatterConfigPath>../../formatter.xml</formatterConfigPath>
    <skipExportTests>false</skipExportTests>
    <handlebars.version>4.4.0</handlebars.version>
    <javaModuleName>com.mulesoft.anypoint.gw.module.policies</javaModuleName>
  </properties>
</project>
