<?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.facebook.presto</groupId>
        <artifactId>presto-root</artifactId>
        <version>0.294</version>
    </parent>

    <artifactId>presto-pinot</artifactId>
    <name>presto-pinot</name>
    <description>Presto - Pinot Native Connector</description>
    <packaging>presto-plugin</packaging>

    <properties>
        <air.main.basedir>${project.parent.basedir}</air.main.basedir>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.facebook.presto</groupId>
            <artifactId>presto-pinot-toolkit</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.google.protobuf</groupId>
                    <artifactId>protobuf-java</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.google.errorprone</groupId>
                    <artifactId>error_prone_annotations</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>

        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
        </dependency>

        <!-- Presto SPI -->
        <dependency>
            <groupId>com.facebook.presto</groupId>
            <artifactId>presto-spi</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.facebook.presto</groupId>
            <artifactId>presto-common</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.facebook.drift</groupId>
            <artifactId>drift-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.openjdk.jol</groupId>
            <artifactId>jol-core</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>io.airlift</groupId>
            <artifactId>slice</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>io.airlift</groupId>
            <artifactId>units</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
            <scope>runtime</scope>
        </dependency>

        <!-- for testing -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>com.facebook.airlift</groupId>
            <artifactId>testing</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>presto-main-base</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>presto-main-base</artifactId>
            <version>${project.version}</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.basepom.maven</groupId>
                    <artifactId>duplicate-finder-maven-plugin</artifactId>
                    <configuration>
                        <ignoredDependencies>
                            <dependency>
                                <groupId>io.netty</groupId>
                                <artifactId>netty-transport</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>io.netty</groupId>
                                <artifactId>netty-buffer</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>io.netty</groupId>
                                <artifactId>netty-transport-classes-epoll</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>io.netty</groupId>
                                <artifactId>netty-transport-classes-kqueue</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>io.netty</groupId>
                                <artifactId>netty-transport-native-unix-common</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>io.netty</groupId>
                                <artifactId>netty-resolver</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>io.netty</groupId>
                                <artifactId>netty-common</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>org.apache.helix</groupId>
                                <artifactId>helix-common</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>org.apache.helix</groupId>
                                <artifactId>helix-core</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>org.apache.helix</groupId>
                                <artifactId>metadata-store-directory-common</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>org.apache.helix</groupId>
                                <artifactId>metrics-common</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>org.apache.helix</groupId>
                                <artifactId>zookeeper-api</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>org.apache.logging.log4j</groupId>
                                <artifactId>log4j-slf4j-impl</artifactId>
                            </dependency>
                            <dependency>
                                <groupId>org.slf4j</groupId>
                                <artifactId>slf4j-jdk14</artifactId>
                            </dependency>
                        </ignoredDependencies>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>
