<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright 2018 Red Hat, Inc. and/or its affiliates. ~ ~ Licensed under 
  the Apache License, Version 2.0 (the "License"); ~ you may not use this file 
  except in compliance with the License. ~ You may obtain a copy of the License 
  at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by 
  applicable law or agreed to in writing, software ~ distributed under the 
  License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS 
  OF ANY KIND, either express or implied. ~ See the License for the specific 
  language governing permissions and ~ limitations under the License. -->

<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">
  <parent>
    <artifactId>test-integration-ruleunits</artifactId>
    <groupId>org.drools.testcoverage</groupId>
    <version>8.44.0.Final</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>

  <artifactId>test-integration-ruleunits-tests</artifactId>
  <name>Drools :: Test Coverage :: Integration tests with Rule Units</name>

  <properties>
    <java.module.name>org.drools.compiler.integrationtests</java.module.name>
    <surefire.forkCount>1</surefire.forkCount>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.drools.testcoverage</groupId>
        <artifactId>test-integration-ruleunits-jar</artifactId>
        <version>${project.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-ruleunits-engine</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-decisiontables</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-wiring-dynamic</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.drools.testcoverage</groupId>
      <artifactId>test-integration-ruleunits-jar</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

 <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <!-- With this configuration, this project excludes the dependency to test-integration-ruleunits-jar while still being built after test-integration-ruleunits-jar -->
          <!-- , because RuleUnitInJarTest requires test-integration-ruleunits-jar.jar to be coped from test-integration-ruleunits-jar build -->
          <classpathDependencyExcludes>org.drools.testcoverage:test-integration-ruleunits-jar</classpathDependencyExcludes>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
