<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" 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.camunda.connector</groupId>
    <artifactId>connectors-parent</artifactId>
    <version>8.6.1</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <name>connector-rabbitmq</name>
  <description>Camunda RabbitMQ Connector</description>
  <artifactId>connector-rabbitmq</artifactId>
  <packaging>jar</packaging>

  <licenses>
    <license>
      <name>Camunda Self-Managed Free Edition license</name>
      <url>https://camunda.com/legal/terms/cloud-terms-and-conditions/camunda-cloud-self-managed-free-edition-terms/</url>
    </license>
    <license>
      <name>Camunda Self-Managed Enterprise Edition license</name>
    </license>
  </licenses>

  <dependencies>
    <dependency>
      <groupId>com.rabbitmq</groupId>
      <artifactId>amqp-client</artifactId>
    </dependency>

    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>rabbitmq</artifactId>
      <version>${version.testcontainers}</version>
    </dependency>

    <!-- This dependency will be removed after camunda/zeebe#9859 is resolved. -->
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-text</artifactId>
    </dependency>
    <dependency>
      <groupId>io.camunda.connector</groupId>
      <artifactId>element-template-generator-core</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>io.camunda.connector</groupId>
        <artifactId>element-template-generator-maven-plugin</artifactId>
        <version>${project.version}</version>
        <configuration>
          <connectors>
            <connector>
              <connectorClass>io.camunda.connector.rabbitmq.outbound.RabbitMqFunction</connectorClass>
              <files>
                <file>
                  <templateId>io.camunda.connectors.RabbitMQ.v1</templateId>
                  <templateFileName>rabbitmq-outbound-connector.json</templateFileName>
                </file>
              </files>
              <generateHybridTemplates>true</generateHybridTemplates>
            </connector>
            <connector>
              <connectorClass>io.camunda.connector.rabbitmq.inbound.RabbitMqExecutable</connectorClass>
              <files>
                <file>
                  <templateId>io.camunda.connectors.inbound.RabbitMQ.StartEvent.v1</templateId>
                  <templateFileName>rabbitmq-inbound-connector-start-event.json</templateFileName>
                </file>
                <file>
                  <templateId>io.camunda.connectors.inbound.RabbitMQ.MessageStart.v1</templateId>
                  <templateFileName>rabbitmq-inbound-connector-message-start.json</templateFileName>
                </file>
                <file>
                  <templateId>io.camunda.connectors.inbound.RabbitMQ.Intermediate.v1</templateId>
                  <templateFileName>rabbitmq-inbound-connector-intermediate.json</templateFileName>
                </file>
                <file>
                  <templateId>io.camunda.connectors.inbound.RabbitMQ.Boundary.v1</templateId>
                  <templateFileName>rabbitmq-inbound-connector-boundary.json</templateFileName>
                </file>
              </files>
              <generateHybridTemplates>true</generateHybridTemplates>
              <features>
                <INBOUND_DEDUPLICATION>true</INBOUND_DEDUPLICATION>
                <ACKNOWLEDGEMENT_STRATEGY_SELECTION>true</ACKNOWLEDGEMENT_STRATEGY_SELECTION>
              </features>
            </connector>
          </connectors>
        </configuration>
      </plugin>
    </plugins>
  </build>


</project>
