<?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>
  <parent>
    <groupId>com.mulesoft.anypoint</groupId>
    <artifactId>api-gateway-parent</artifactId>
    <version>4.9.7</version>
  </parent>

  <artifactId>api-gateway-events-collector-service</artifactId>
  <version>1.5.7</version>

  <name>API Gateway Events Collector Service Implementation</name>
  <description>Implementation of Gateway's Events Collector Service API</description>
  <packaging>mule-service</packaging>

  <properties>
    <licensePath>LICENSE_HEADER.txt</licensePath>
    <formatterConfigPath>formatter.xml</formatterConfigPath>

    <javaModuleName>com.mulesoft.anypoint.gw.service.events.collector</javaModuleName>
  </properties>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>mule-service</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>mule-service</classifier>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.mule.runtime.plugins</groupId>
        <artifactId>mule-service-maven-plugin</artifactId>
        <version>${mule.app.plugins.maven.plugin.version}</version>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>mule-ee-releases</id>
      <name>Internal Release Repo</name>
      <url>https://repository.mulesoft.org/nexus/content/repositories/ci-releases/</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>mule-ee-snapshots</id>
      <name>Internal Release Repo</name>
      <url>https://repository.mulesoft.org/nexus/content/repositories/ci-snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>api-gateway-events-collector-service-api</artifactId>
      <version>${apiGatewayEventsCollectorsApi}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.mule.runtime</groupId>
      <artifactId>mule-api</artifactId>
      <version>${muleApiVersion}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.mulesoft.anypoint</groupId>
      <artifactId>api-gateway-api</artifactId>
      <version>${apiGatewayApiVersion}</version>
      <scope>provided</scope>
    </dependency>

    <!-- Tests -->
    <dependency>
      <groupId>org.mule.tests</groupId>
      <artifactId>mule-tests-unit</artifactId>
      <version>4.2.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.qameta.allure</groupId>
      <artifactId>allure-junit4</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mule.runtime</groupId>
      <artifactId>mule-module-container</artifactId>
      <version>${muleVersion}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mule.runtime</groupId>
      <artifactId>mule-module-tls</artifactId>
      <version>${muleVersion}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
