<?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">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>de.loosetie</groupId>
    <artifactId>lt-parent-kotlin</artifactId>
    <version>1.0.12</version>
  </parent>

  <groupId>de.loosetie.logging</groupId>
  <artifactId>lt-logging-root</artifactId>
  <version>1.1.1</version>
  <packaging>pom</packaging>

  <name>LT :: Logging</name>
  <url>https://git.denktmit.tech/DenktMit-OSS/lt-logging</url>

  <scm>
    <connection>scm:git:https://git.denktmit.tech/DenktMit-OSS/lt-logging.git</connection>
    <developerConnection>scm:git:ssh://git@git.denktmit.tech/DenktMit-OSS/lt-logging.git</developerConnection>
    <url>https://git.denktmit.tech/DenktMit-OSS/lt-logging</url>
  </scm>

  <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>1.1.1-SNAPSHOT</revision>
    <!-- Usage reference for AI coding assistants, pinned to this release.
         Also bundled in lt-logging-api at META-INF/de.loosetie.logging/AI.md -->
    <url.ai-docs>https://git.denktmit.tech/DenktMit-OSS/lt-logging/raw/tag/v${project.version}/AI.md</url.ai-docs>
  </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>
    <snapshotRepository>
      <id>git.denktmit.tech</id>
      <url>https://git.denktmit.tech/api/packages/DenktMit-OSS/maven</url>
    </snapshotRepository>
  </distributionManagement>

  <build>
    <plugins>
      <!-- Resolves 1.1.1 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.8.0</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>
