<?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>ballerina-parent</artifactId>
    <groupId>org.ballerinalang</groupId>
    <version>0.970.0-beta2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>observability-test-utils</artifactId>
  <name>Ballerina - Observability - Tracing Test Utils</name>
  <url>http://ballerina-lang.org</url>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <excludes>
          <exclude>ballerina/**</exclude>
        </excludes>
      </resource>
      <resource>
        <targetPath>META-INF/ballerina</targetPath>
        <directory>${generated.ballerina.source.directory}</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.bsc.maven</groupId>
        <artifactId>maven-processor-plugin</artifactId>
        <version>${mvn.processor.plugin.version}</version>
        <executions>
          <execution>
            <id>process</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>process</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <processors>
            <processor>org.ballerinalang.codegen.BallerinaAnnotationProcessor</processor>
          </processors>
          <options>
            <nativeEntityProviderPackage>org.ballerina.testing.generated.providers</nativeEntityProviderPackage>
            <nativeEntityProviderClass>StandardNativeElementProvider</nativeEntityProviderClass>
          </options>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <dependencyReducedPomLocation>${java.io.tmpdir}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
              <artifactSet>
                <includes>
                  <include>io.opentracing:opentracing-mock</include>
                </includes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                  </excludes>
                </filter>
              </filters>
              <shadedArtifactAttached>false</shadedArtifactAttached>
              <transformers>
                <transformer />
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.ballerinalang</groupId>
      <artifactId>ballerina-core</artifactId>
      <version>0.970.0-beta2</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <properties>
    <maven.spotbugsplugin.exclude.file>spotbugs-exclude.xml</maven.spotbugsplugin.exclude.file>
    <generated.ballerina.source.directory>${project.build.directory}/../src/main/ballerina</generated.ballerina.source.directory>
    <maven.checkstyleplugin.excludes>**/generated/**</maven.checkstyleplugin.excludes>
  </properties>
</project>

