<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <parent>
    <groupId>org.camunda.bpm.quarkus</groupId>
    <artifactId>camunda-bpm-quarkus-engine-parent</artifactId>
    <version>7.20.0</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>

  <artifactId>camunda-bpm-quarkus-engine-qa</artifactId>
  <name>Camunda Platform - Quarkus Extension - Engine - CDI QA</name>

  <properties>
    <arquillian.version>1.7.0.Final</arquillian.version>
  </properties>

  <dependencyManagement>
    <dependencies>
      <!-- Add Quarkus BOM to fix Maven artifact dependencies overriden by Arquillian BOM -->
      <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-bom</artifactId>
        <version>${version.quarkus}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-core-internal-dependencies</artifactId>
        <version>${project.version}</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
      <dependency>
        <groupId>org.jboss.arquillian</groupId>
        <artifactId>arquillian-bom</artifactId>
        <version>${arquillian.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <systemPropertyVariables>
            <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
          </systemPropertyVariables>

          <dependenciesToScan>
            <dependency>org.camunda.bpm:camunda-engine-cdi-jakarta</dependency>
          </dependenciesToScan>

          <excludes>
            <!-- See https://jira.camunda.com/browse/CAM-13751 -->
            <exclude>**/BeanPropertyElTest.java</exclude>

            <!-- See ProgrammaticBeanLookupTest in quarkus-extension/engine/deployment module -->
            <exclude>**/ProgrammaticBeanLookupTest.java</exclude>
            <!-- See https://github.com/camunda/camunda-bpm-platform/issues/3419 -->
            <exclude>**/TaskFormTest.java</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <!-- Camunda dependencies -->

    <dependency>
      <groupId>org.camunda.bpm.quarkus</groupId>
      <artifactId>camunda-bpm-quarkus-engine</artifactId>
      <version>${project.version}</version>
    </dependency>

    <dependency>
      <groupId>org.camunda.bpm</groupId>
      <artifactId>camunda-engine-cdi-jakarta</artifactId>
      <version>${project.version}</version>
      <type>test-jar</type>
      <classifier>tests-quarkus</classifier>
    </dependency>

    <!-- Quarkus dependencies -->

    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-arquillian</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-jdbc-h2</artifactId>
      <scope>test</scope>
    </dependency>

    <!-- Test dependencies -->

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.jboss.arquillian.junit</groupId>
      <artifactId>arquillian-junit-container</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

</project>