<?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">
  <parent>
    <groupId>ai.timefold.solver.enterprise</groupId>
    <artifactId>timefold-solver-enterprise-spring-parent</artifactId>
    <version>2.2.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>

  <artifactId>timefold-solver-enterprise-spring-boot-starter</artifactId>

  <name>Timefold Solver Enterprise Edition - Spring Boot integration</name>
  <description>
    Timefold solves planning problems.
    This lightweight, embeddable planning engine implements powerful and scalable algorithms
    to optimize business resource scheduling and planning.

    This module contains the Timefold Solver Enterprise Edition.
  </description>
  <url>https://timefold.ai</url>

  <packaging>jar</packaging>

  <dependencies>
    <dependency>
      <groupId>ai.timefold.solver.enterprise</groupId>
      <artifactId>timefold-solver-enterprise-core</artifactId>
    </dependency>
    <dependency>
      <groupId>ai.timefold.solver</groupId>
      <artifactId>timefold-solver-spring-boot-starter</artifactId>
    </dependency>
    <dependency>
      <groupId>ai.timefold.solver.enterprise</groupId>
      <artifactId>timefold-solver-enterprise-jackson</artifactId>
    </dependency>
    <!-- A workaround to enable the use of the library without the need for explicit dependency exclusion -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <exclusions>
        <exclusion>
          <groupId>commons-logging</groupId>
          <artifactId>commons-logging</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <configuration>
          <ignoredUnusedDeclaredDependencies>
            <dependency>ai.timefold.solver:*:jar</dependency>
            <dependency>ai.timefold.solver.enterprise:*:jar</dependency>
            <dependency>org.springframework:spring-core</dependency>
          </ignoredUnusedDeclaredDependencies>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
