<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.camunda.connector</groupId>
      <artifactId>connectors-parent</artifactId>
      <version>8.8.8</version>
      <relativePath>../pom.xml</relativePath>
  </parent>

  <name>connector-webhook</name>
  <description>Camunda Inbound Webhook</description>
  <artifactId>connector-webhook</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>io.camunda.connector</groupId>
      <artifactId>jackson-datatype-feel</artifactId>
    </dependency>
    <dependency>
      <groupId>io.camunda.connector</groupId>
      <artifactId>element-template-generator-core</artifactId>
    </dependency>
    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>${version.javax.xml.bind}</version>
    </dependency>
    <dependency>
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>${version.commons-codec}</version>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>${version.jackson-bom}</version>
    </dependency>
    <dependency>
      <groupId>jakarta.annotation</groupId>
      <artifactId>jakarta.annotation-api</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>${version.guava}</version>
    </dependency>
    <dependency>
      <groupId>com.auth0</groupId>
      <artifactId>java-jwt</artifactId>
      <version>${version.auth0.jwt}</version>
    </dependency>
    <dependency>
      <groupId>com.auth0</groupId>
      <artifactId>jwks-rsa</artifactId>
      <version>${version.auth0.jwks}</version>
    </dependency>
    <dependency>
      <groupId>org.wiremock</groupId>
      <artifactId>wiremock-standalone</artifactId>
      <version>${version.wiremock}</version>
      <scope>test</scope>
    </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.inbound.HttpWebhookExecutable</connectorClass>
              <files>
                <file>
                  <templateId>io.camunda.connectors.webhook.WebhookConnector.v1</templateId>
                  <templateFileName>webhook-connector-start-event.json</templateFileName>
                </file>
                <file>
                  <templateId>io.camunda.connectors.webhook.WebhookConnectorStartMessage.v1</templateId>
                  <templateFileName>webhook-connector-start-message.json</templateFileName>
                </file>
                <file>
                  <templateId>io.camunda.connectors.webhook.WebhookConnectorIntermediate.v1</templateId>
                  <templateFileName>webhook-connector-intermediate.json</templateFileName>
                </file>
                <file>
                  <templateId>io.camunda.connectors.webhook.WebhookConnectorBoundary.v1</templateId>
                  <templateFileName>webhook-connector-boundary.json</templateFileName>
                </file>
                  <file>
                      <templateId>io.camunda.connectors.webhook.WebhookConnectorReceive.v1</templateId>
                      <templateFileName>webhook-connector-receive.json</templateFileName>
                  </file>
              </files>
              <generateHybridTemplates>true</generateHybridTemplates>
              <features>
                <ACKNOWLEDGEMENT_STRATEGY_SELECTION>true</ACKNOWLEDGEMENT_STRATEGY_SELECTION>
                <INBOUND_DEDUPLICATION>true</INBOUND_DEDUPLICATION>
              </features>
            </connector>
          </connectors>
          <versionHistoryEnabled>true</versionHistoryEnabled>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
