<?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>arrow-flight</artifactId>
    <groupId>org.apache.arrow</groupId>
    <version>17.0.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>flight-sql-jdbc-driver</artifactId>
  <name>Arrow Flight SQL JDBC Driver</name>
  <description>A JDBC driver based on Arrow Flight SQL.</description>
  <url>https://arrow.apache.org</url>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedArtifactAttached>false</shadedArtifactAttached>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <minimizeJar>false</minimizeJar>
              <artifactSet>
                <includes>
                  <include>*:*</include>
                </includes>
                <excludes>
                  <exclude>org.checkerframework:checker-qual</exclude>
                  <exclude>org.codehaus.mojo:animal-sniffer-annotations</exclude>
                  <exclude>javax.annotation:javax.annotation-api</exclude>
                  <exclude>com.google.android:annotations</exclude>
                  <exclude>com.google.errorprone:error_prone_annotations</exclude>
                  <exclude>com.google.code.findbugs:jsr305</exclude>
                  <exclude>com.google.j2objc:j2objc-annotations</exclude>
                </excludes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>com.</pattern>
                  <shadedPattern>org.apache.arrow.driver.jdbc.shaded.com.</shadedPattern>
                  <excludes>
                    <exclude>com.sun.**</exclude>
                  </excludes>
                </relocation>
                <relocation>
                  <pattern>org.</pattern>
                  <shadedPattern>org.apache.arrow.driver.jdbc.shaded.org.</shadedPattern>
                  <excludes>
                    <exclude>org.apache.arrow.driver.jdbc.**</exclude>
                    <exclude>org.apache.arrow.flight.name</exclude>
                    <exclude>org.apache.arrow.flight.version</exclude>
                    <exclude>org.apache.arrow.flight.jdbc-driver.name</exclude>
                    <exclude>org.apache.arrow.flight.jdbc-driver.version</exclude>
                  </excludes>
                </relocation>
                <relocation>
                  <pattern>io.</pattern>
                  <shadedPattern>org.apache.arrow.driver.jdbc.shaded.io.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>net.</pattern>
                  <shadedPattern>org.apache.arrow.driver.jdbc.shaded.net.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>mozilla.</pattern>
                  <shadedPattern>org.apache.arrow.driver.jdbc.shaded.mozilla.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>META-INF.native.libnetty_</pattern>
                  <shadedPattern>META-INF.native.liboaadj_netty_</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>META-INF.native.netty_</pattern>
                  <shadedPattern>META-INF.native.oaadj_netty_</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer />
              </transformers>
              <filters>
                <filter>
                  <artifact>org.apache.arrow:arrow-vector</artifact>
                  <excludes>
                    <exclude>codegen/**</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>org.apache.calcite.avatica:*</artifact>
                  <excludes>
                    <exclude>META-INF/services/java.sql.Driver</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>**/*.SF</exclude>
                    <exclude>**/*.RSA</exclude>
                    <exclude>**/*.DSA</exclude>
                    <exclude>META-INF/native/libio_grpc_netty*</exclude>
                    <exclude>META-INF/native/io_grpc_netty_shaded*</exclude>
                    <exclude>**/*.proto</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jul-to-slf4j</artifactId>
      <version>2.0.13</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
      <version>2.0.13</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>log4j-over-slf4j</artifactId>
      <version>2.0.13</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.10.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-platform-engine</artifactId>
          <groupId>org.junit.platform</groupId>
        </exclusion>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <version>5.10.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>opentest4j</artifactId>
          <groupId>org.opentest4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-platform-commons</artifactId>
          <groupId>org.junit.platform</groupId>
        </exclusion>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-params</artifactId>
      <version>5.10.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-junit-jupiter</artifactId>
      <version>2.25.1</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>mockito-core</artifactId>
          <groupId>org.mockito</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <version>1.3.14</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>logback-core</artifactId>
          <groupId>ch.qos.logback</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>de.huxhorn.lilith</groupId>
      <artifactId>de.huxhorn.lilith.logback.appender.multiplex-classic</artifactId>
      <version>8.3.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>de.huxhorn.sulky.codec</artifactId>
          <groupId>de.huxhorn.sulky</groupId>
        </exclusion>
        <exclusion>
          <artifactId>de.huxhorn.lilith.data.logging.protobuf</artifactId>
          <groupId>de.huxhorn.lilith</groupId>
        </exclusion>
        <exclusion>
          <artifactId>de.huxhorn.lilith.sender</artifactId>
          <groupId>de.huxhorn.lilith</groupId>
        </exclusion>
        <exclusion>
          <artifactId>de.huxhorn.lilith.logback.converter-classic</artifactId>
          <groupId>de.huxhorn.lilith</groupId>
        </exclusion>
        <exclusion>
          <artifactId>de.huxhorn.lilith.logback.appender.multiplex-core</artifactId>
          <groupId>de.huxhorn.lilith</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>
