<?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>bigdata</artifactId>
    <groupId>io.tidb</groupId>
    <version>0.0.4</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>prestodb-connector</artifactId>
  <name>PrestoDB Connector</name>
  <url>https://github.com/pingcap-incubator/TiBigData</url>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <encoding>UTF-8</encoding>
          <showWarnings>true</showWarnings>
          <showDeprecation>true</showDeprecation>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <archive>
            <addMavenDescriptor>false</addMavenDescriptor>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <version>2.4.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>attached</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <descriptors>
            <descriptor>src/main/assembly/tidb.xml</descriptor>
          </descriptors>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <relocation>
                  <pattern>com.google.common</pattern>
                  <shadedPattern>shade.bigdata.com.google.common</shadedPattern>
                </relocation>
              </relocations>
              <finalName>${project.artifactId}-${project.version}</finalName>
              <transformers>
                <transformer />
              </transformers>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                    <exclude>META-INF/LICENSE</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.facebook.presto</groupId>
      <artifactId>presto-spi</artifactId>
      <version>0.234.2</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>slice</artifactId>
          <groupId>io.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jol-core</artifactId>
          <groupId>org.openjdk.jol</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.1</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>8.0.21</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>protobuf-java</artifactId>
          <groupId>com.google.protobuf</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.facebook.presto</groupId>
      <artifactId>presto-main</artifactId>
      <version>0.234.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>esri-geometry-api</artifactId>
          <groupId>com.esri.geometry</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-geospatial-toolkit</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>fastutil</artifactId>
          <groupId>it.unimi.dsi</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-math3</artifactId>
          <groupId>org.apache.commons</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-array</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-bytecode</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-client</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-parser</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-matching</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-memory-context</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>aircompressor</artifactId>
          <groupId>io.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>concurrent</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>node</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>discovery</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>event</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>http-server</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jaxrs</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jmx</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jmx-http</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>resolver</artifactId>
          <groupId>io.airlift.resolver</groupId>
        </exclusion>
        <exclusion>
          <artifactId>security</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>stats</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>trace-token</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>joni</artifactId>
          <groupId>io.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>joda-to-java-time-bridge</artifactId>
          <groupId>io.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>drift-server</artifactId>
          <groupId>com.facebook.drift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>drift-transport-netty</artifactId>
          <groupId>com.facebook.drift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>drift-transport-spi</artifactId>
          <groupId>com.facebook.drift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>drift-client</artifactId>
          <groupId>com.facebook.drift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>drift-codec</artifactId>
          <groupId>com.facebook.drift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>drift-api</artifactId>
          <groupId>com.facebook.drift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>re2j-td</artifactId>
          <groupId>com.teradata</groupId>
        </exclusion>
        <exclusion>
          <artifactId>discovery-server</artifactId>
          <groupId>com.facebook.airlift.discovery</groupId>
        </exclusion>
        <exclusion>
          <artifactId>javax.servlet-api</artifactId>
          <groupId>javax.servlet</groupId>
        </exclusion>
        <exclusion>
          <artifactId>javax.ws.rs-api</artifactId>
          <groupId>javax.ws.rs</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jackson-module-afterburner</artifactId>
          <groupId>com.fasterxml.jackson.module</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jackson-dataformat-smile</artifactId>
          <groupId>com.fasterxml.jackson.dataformat</groupId>
        </exclusion>
        <exclusion>
          <artifactId>joda-time</artifactId>
          <groupId>joda-time</groupId>
        </exclusion>
        <exclusion>
          <artifactId>http-client</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>aether-api</artifactId>
          <groupId>org.sonatype.aether</groupId>
        </exclusion>
        <exclusion>
          <artifactId>asm</artifactId>
          <groupId>org.ow2.asm</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jgrapht-core</artifactId>
          <groupId>org.jgrapht</groupId>
        </exclusion>
        <exclusion>
          <artifactId>pcollections</artifactId>
          <groupId>org.pcollections</groupId>
        </exclusion>
        <exclusion>
          <artifactId>lucene-analyzers-common</artifactId>
          <groupId>org.apache.lucene</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jjwt</artifactId>
          <groupId>io.jsonwebtoken</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-plugin-toolkit</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>slice</artifactId>
          <groupId>io.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jol-core</artifactId>
          <groupId>org.openjdk.jol</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.facebook.presto</groupId>
      <artifactId>presto-tests</artifactId>
      <version>0.234.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>presto-main</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-tpch</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>tpch</artifactId>
          <groupId>io.airlift.tpch</groupId>
        </exclusion>
        <exclusion>
          <artifactId>testing</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>okhttp</artifactId>
          <groupId>com.squareup.okhttp3</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jdbi3-core</artifactId>
          <groupId>org.jdbi</groupId>
        </exclusion>
        <exclusion>
          <artifactId>testng</artifactId>
          <groupId>org.testng</groupId>
        </exclusion>
        <exclusion>
          <artifactId>assertj-core</artifactId>
          <groupId>org.assertj</groupId>
        </exclusion>
        <exclusion>
          <artifactId>h2</artifactId>
          <groupId>com.h2database</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-client</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>presto-parser</artifactId>
          <groupId>com.facebook.presto</groupId>
        </exclusion>
        <exclusion>
          <artifactId>concurrent</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>discovery-server</artifactId>
          <groupId>com.facebook.airlift.discovery</groupId>
        </exclusion>
        <exclusion>
          <artifactId>node</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>stats</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>joda-time</artifactId>
          <groupId>joda-time</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-math3</artifactId>
          <groupId>org.apache.commons</groupId>
        </exclusion>
        <exclusion>
          <artifactId>http-client</artifactId>
          <groupId>com.facebook.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>javax.ws.rs-api</artifactId>
          <groupId>javax.ws.rs</groupId>
        </exclusion>
        <exclusion>
          <artifactId>slice</artifactId>
          <groupId>io.airlift</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <dep.prestodb.version>0.234.2</dep.prestodb.version>
    <dep.airlift.version>0.191</dep.airlift.version>
  </properties>
</project>
