<?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>ozone</artifactId>
    <groupId>org.apache.ozone</groupId>
    <version>2.0.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>ozone-filesystem-shaded</artifactId>
  <name>Apache Ozone FileSystem Shaded</name>
  <version>2.0.0</version>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <proc>none</proc>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <skip>${maven.shade.skip}</skip>
              <transformers>
                <transformer>
                  <resources>
                    <resource>META-INF/BC1024KE.DSA</resource>
                    <resource>META-INF/BC2048KE.DSA</resource>
                    <resource>META-INF/BC1024KE.SF</resource>
                    <resource>META-INF/BC2048KE.SF</resource>
                  </resources>
                </transformer>
                <transformer />
                <transformer>
                  <resource>ozone-default-generated.xml</resource>
                </transformer>
              </transformers>
              <relocations>
                <relocation>
                  <pattern>org</pattern>
                  <shadedPattern>${shaded.prefix}.org</shadedPattern>
                  <includes>
                    <include>org.yaml.**.*</include>
                    <include>org.sqlite.**.*</include>
                    <include>org.tukaani.**.*</include>
                    <include>org.bouncycastle.**.*</include>
                    <include>org.rocksdb.**.*</include>
                    <include>org.apache.commons.cli.**.*</include>
                    <include>org.apache.commons.compress.**.*</include>
                    <include>org.apache.commons.codec.**.*</include>
                    <include>org.apache.commons.beanutils.**.*</include>
                    <include>org.apache.commons.collections.**.*</include>
                    <include>org.apache.commons.digester.**.*</include>
                    <include>org.apache.commons.io.**.*</include>
                    <include>org.apache.commons.logging.**.*</include>
                    <include>org.apache.commons.validator.**.*</include>
                    <include>org.apache.commons.lang3.**.*</include>
                    <include>org.sqlite.**.*</include>
                    <include>org.apache.thrift.**.*</include>
                  </includes>
                </relocation>
                <relocation>
                  <pattern>com</pattern>
                  <shadedPattern>${shaded.prefix}.com</shadedPattern>
                  <includes>
                    <include>com.google.common.**.*</include>
                    <include>com.google.gson.**.*</include>
                    <include>com.codahale.**.*</include>
                    <include>com.fasterxml.**.*</include>
                    <include>com.lmax.**.*</include>
                    <include>com.github.joshelser.**.*</include>
                    <include>com.twitter.**.*</include>
                  </includes>
                </relocation>
                <relocation>
                  <pattern>kotlin</pattern>
                  <shadedPattern>${shaded.prefix}.kotlin</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>picocli</pattern>
                  <shadedPattern>${shaded.prefix}.picocli</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>info</pattern>
                  <shadedPattern>${shaded.prefix}.info</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>io</pattern>
                  <shadedPattern>${shaded.prefix}.io</shadedPattern>
                  <excludes>
                    <exclude>io!netty!*</exclude>
                  </excludes>
                </relocation>
                <relocation>
                  <pattern>okio</pattern>
                  <shadedPattern>${shaded.prefix}.okio</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>okhttp3</pattern>
                  <shadedPattern>${shaded.prefix}.okhttp3</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <version>3.27.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>byte-buddy</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <version>5.12.1</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.12.1</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>4.11.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>byte-buddy-agent</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>objenesis</artifactId>
          <groupId>org.objenesis</groupId>
        </exclusion>
        <exclusion>
          <artifactId>byte-buddy</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-inline</artifactId>
      <version>4.11.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-junit-jupiter</artifactId>
      <version>4.11.0</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <maven.test.skip>true</maven.test.skip>
    <shaded.prefix>org.apache.hadoop.ozone.shaded</shaded.prefix>
  </properties>
</project>
