<?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>dd-trace-java</artifactId>
    <groupId>com.datadoghq</groupId>
    <version>0.0.7</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>dd-java-agent</artifactId>
  <name>dd-java-agent</name>
  <description>Datadog Java Agent for tracing</description>
  <url>https://github.com/datadog/dd-trace-java</url>
  <build>
    <finalName>${project.artifactId}</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.1</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer>
                  <resource>otarules.btm</resource>
                </transformer>
                <transformer>
                  <manifestEntries>
                    <Agent-Class>io.opentracing.contrib.agent.AnnotationsTracingAgent</Agent-Class>
                    <Premain-Class>io.opentracing.contrib.agent.AnnotationsTracingAgent</Premain-Class>
                    <Can-Redefine-Classes>true</Can-Redefine-Classes>
                    <Can-Retransform-Classes>true</Can-Retransform-Classes>
                    <Boot-Class-Path>./${project.artifactId}.jar</Boot-Class-Path>
                  </manifestEntries>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.datastax.cassandra</groupId>
      <artifactId>cassandra-driver-core</artifactId>
      <version>3.2.0</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>netty-handler</artifactId>
          <groupId>io.netty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>metrics-core</artifactId>
          <groupId>io.dropwizard.metrics</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jnr-ffi</artifactId>
          <groupId>com.github.jnr</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jnr-posix</artifactId>
          <groupId>com.github.jnr</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <java.version>1.7</java.version>
    <ot.contrib.webservlet.version>0.0.9</ot.contrib.webservlet.version>
    <ot.contrib.okhttp.version>0.0.5</ot.contrib.okhttp.version>
    <ot.contrib.aws.version>0.0.2</ot.contrib.aws.version>
    <ot.contrib.mongo.version>0.0.2</ot.contrib.mongo.version>
    <ot.agent.version>0.1.0</ot.agent.version>
    <dd-trace.version>0.0.7</dd-trace.version>
    <ot.contrib.jdbc.version>0.0.2</ot.contrib.jdbc.version>
    <ot.contrib.cassandra.version>0.0.2</ot.contrib.cassandra.version>
    <ot.contrib.httpclient.version>0.0.2</ot.contrib.httpclient.version>
  </properties>
</project>

