<?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>io.apicurio</groupId>
    <artifactId>apicurio-registry-distro</artifactId>
    <version>3.2.4</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <artifactId>apicurio-registry-distro-connect-converter</artifactId>
  <name>apicurio-registry-distro-connect-converter</name>

  <properties>
    <projectRoot>${project.basedir}/../..</projectRoot>
    <assembly.descriptor>converter-distribution</assembly.descriptor>
    <version.jersey>2.31</version.jersey>
    <version.geronimo.config>1.2.2</version.geronimo.config>
    <distro.version.kafka>2.4.0</distro.version.kafka>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>connect-json</artifactId>
        <version>${distro.version.kafka}</version>
        <scope>provided</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>io.apicurio</groupId>
      <artifactId>apicurio-registry-utils-converter</artifactId>
    </dependency>
    <dependency>
      <groupId>io.apicurio</groupId>
      <artifactId>apicurio-registry-java-sdk</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <id>default</id>
            <goals>
              <goal>single</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <finalName>apicurio-kafka-connect-converter-${project.version}</finalName>
              <appendAssemblyId>false</appendAssemblyId>
              <attach>true</attach>
              <!-- we want attach & deploy these to Maven -->
              <descriptors>
                <descriptor>src/assembly/${assembly.descriptor}.xml</descriptor>
              </descriptors>
              <tarLongFileMode>${tar.long.file.mode}</tarLongFileMode>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <!-- We don't want to run this -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>non-existant</phase>
          </execution>
          <execution>
            <id>attach-test-sources</id>
            <phase>non-existant</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <!-- We don't want to create a test JAR -->
            <id>test-jar</id>
            <goals>
              <goal>test-jar</goal>
            </goals>
            <phase>non-existant</phase>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
