<?xml version="1.0" encoding="UTF-8"?>
<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>de.loosetie</groupId>
    <artifactId>lt-parent-kotlin</artifactId>
    <version>1.0.12</version>
  </parent>

  <groupId>de.loosetie.crudular</groupId>
  <artifactId>lt-crudular-root</artifactId>
  <version>2.1.2</version>
  <packaging>pom</packaging>

  <name>LT :: CRUDular</name>

  <properties>
    <!-- Single source of truth for the reactor version (Maven CI-friendly versions).
         CI overrides it per build via -Drevision=<version>; this default is used for local builds. -->
    <revision>2.0.0-SNAPSHOT</revision>
  </properties>

  <modules>
    <module>_bom</module>
    <module>_parent</module>
  </modules>

  <repositories>
    <repository>
      <id>git.denktmit.tech</id>
      <url>https://git.denktmit.tech/api/packages/DenktMit-OSS/maven</url>
    </repository>
  </repositories>
  <distributionManagement>
    <repository>
      <id>git.denktmit.tech</id>
      <url>https://git.denktmit.tech/api/packages/DenktMit-OSS/maven</url>
    </repository>
  </distributionManagement>

  <build>
    <plugins>
      <!-- Resolves 2.1.2 in the installed/deployed POMs so consumers never see the placeholder.
           Inherited by _bom, _parent and every child module. -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.7.3</version>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>
