<?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>library-parent-pom</artifactId>
    <groupId>dev.crashteam</groupId>
    <version>2.0.0</version>
    <relativePath>../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>liquibase-clickhouse</artifactId>
  <name>Liquibase extension for ClickHouse</name>
  <version>0.8.0</version>
  <description>A Liquibase extension for the ClickHouse database.</description>
  <url>https://github.com/mediarithmics/liquibase-clickhouse</url>
  <inceptionYear>2020</inceptionYear>
  <developers>
    <developer>
      <id>pdalpra@mediarithmics.com</id>
      <name>Pierre Dal-Pra</name>
      <organization>Mediarithmics</organization>
    </developer>
    <developer>
      <id>skireev@mediarithmics.com</id>
      <name>Sergei Kireev</name>
      <organization>mediarithmics</organization>
    </developer>
    <developer>
      <id>iepimakhov@mediarithmics.com</id>
      <name>Igor Epimakhov</name>
      <organization>mediarithmics</organization>
    </developer>
    <developer>
      <organization>crashteam</organization>
      <organizationUrl>https://crashteam.dev</organizationUrl>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Apache 2</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/crashteamdev/jvm-shared-resources.git</connection>
    <developerConnection>scm:git:ssh://github.com/crashteamdev/jvm-shared-resources.git</developerConnection>
    <url>https://github.com/crashteamdev/jvm-shared-resources/tree/master</url>
  </scm>
  <organization>
    <name>Mediarithmics</name>
    <url>https://www.mediarithmics.com</url>
  </organization>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>${maven-source-plugin.version}</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>${maven-javadoc-plugin.version}</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <tagNameFormat>@{project.version}</tagNameFormat>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>${license-maven-plugin.version}</version>
        <executions>
          <execution>
            <phase>process-sources</phase>
            <goals>
              <goal>update-file-header</goal>
              <goal>update-project-license</goal>
              <goal>add-third-party</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <licenseName>apache_v2</licenseName>
          <licenseFile>LICENSE</licenseFile>
          <canUpdateCopyright>true</canUpdateCopyright>
          <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
          <includes>
            <include>**/*.java</include>
          </includes>
          <roots>
            <root>src/main/java</root>
            <root>src/test</root>
          </roots>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${maven-shade-plugin.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>shaded</shadedClassifierName>
              <relocations>
                <relocation>
                  <pattern>com.</pattern>
                  <shadedPattern>shaded.liquibase.com.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>net.</pattern>
                  <shadedPattern>shaded.liquibase.net.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.</pattern>
                  <shadedPattern>shaded.liquibase.org.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>ru.</pattern>
                  <shadedPattern>shaded.liquibase.ru.</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.coveo</groupId>
        <artifactId>fmt-maven-plugin</artifactId>
        <version>${fmt-maven-plugin.version}</version>
        <executions>
          <execution>
            <phase>process-sources</phase>
            <goals>
              <goal>format</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <skipSortingImports>true</skipSortingImports>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${maven-surefire-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>net.revelc.code</groupId>
        <artifactId>impsort-maven-plugin</artifactId>
        <version>${impsort-maven-plugin.version}</version>
        <executions>
          <execution>
            <phase>process-sources</phase>
            <goals>
              <goal>sort</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-utils</artifactId>
            <version>3.5.1</version>
          </dependency>
        </dependencies>
        <configuration>
          <removeUnused>true</removeUnused>
          <groups>java.,javax.,liquibase.ext.clickhouse.</groups>
          <staticGroups>java,*</staticGroups>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.liquibase</groupId>
      <artifactId>liquibase-core</artifactId>
      <version>4.24.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>2.0.13</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>2.0.13</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.lz4</groupId>
      <artifactId>lz4-java</artifactId>
      <version>1.8.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>5.4.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-params</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-engine</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>clickhouse</artifactId>
      <version>1.17.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>testcontainers</artifactId>
          <groupId>org.testcontainers</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jdbc</artifactId>
          <groupId>org.testcontainers</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>1.17.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>testcontainers</artifactId>
          <groupId>org.testcontainers</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
    <maven-plugin-plugin.version>3.6.0</maven-plugin-plugin.version>
    <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
    <test-containers.version>1.17.3</test-containers.version>
    <clickhouse-jdbc.version>0.6.0</clickhouse-jdbc.version>
    <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
    <slf4j.version>2.0.13</slf4j.version>
    <impsort-maven-plugin.version>1.4.1</impsort-maven-plugin.version>
    <project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
    <junit.version>5.4.0</junit.version>
    <typesafe-config.version>1.4.1</typesafe-config.version>
    <snakeyaml.version>1.28</snakeyaml.version>
    <maven.compiler.source>21</maven.compiler.source>
    <liquibase.version>4.24.0</liquibase.version>
    <maven-shade-plugin.version>3.5.3</maven-shade-plugin.version>
    <encoding>UTF-8</encoding>
    <maven.compiler.target>21</maven.compiler.target>
    <maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version>
    <fmt-maven-plugin.version>2.9.1</fmt-maven-plugin.version>
    <license-maven-plugin.version>2.0.0</license-maven-plugin.version>
  </properties>
</project>
