<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2016-2024 Crown Copyright
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>uk.gov.gchq.gaffer</groupId>
    <artifactId>library</artifactId>
    <version>2.3.2</version>
  </parent>
  <groupId>uk.gov.gchq.gaffer</groupId>
  <artifactId>sketches-library</artifactId>
  <version>2.3.2</version>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <dependencies>
    <dependency>
      <groupId>uk.gov.gchq.gaffer</groupId>
      <artifactId>serialisation</artifactId>
      <version>${project.parent.version}</version>
    </dependency>
    <dependency>
      <groupId>uk.gov.gchq.gaffer</groupId>
      <artifactId>data</artifactId>
      <version>${project.parent.version}</version>
    </dependency>
    <dependency>
      <groupId>uk.gov.gchq.koryphe</groupId>
      <artifactId>core</artifactId>
      <classifier>jdk8</classifier>
    </dependency>
    <dependency>
      <groupId>com.clearspring.analytics</groupId>
      <artifactId>stream</artifactId>
      <version>${clearspring.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.datasketches</groupId>
      <artifactId>datasketches-java</artifactId>
      <version>${datasketches.version}</version>
    </dependency>
    <dependency>
      <groupId>uk.gov.gchq.koryphe</groupId>
      <artifactId>core</artifactId>
      <type>test-jar</type>
      <classifier>tests-jdk8</classifier>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>uk.gov.gchq.gaffer</groupId>
      <artifactId>common-util</artifactId>
      <version>${project.parent.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>uk.gov.gchq.gaffer</groupId>
      <artifactId>serialisation</artifactId>
      <version>${project.parent.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${shade.plugin.version}</version>
        <executions>
          <execution>
            <id>deploy</id>
            <phase>${shaded.jar.phase}</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>deploy</shadedClassifierName>
              <artifactSet>
                <includes>
                  <include>com.clearspring.analytics:stream</include>
                  <include>org.apache.datasketches:*</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>com.fasterxml.jackson</pattern>
                  <shadedPattern>hidden.com.fasterxml.jackson</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
