<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

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

  <name>LT :: Parent</name>
  <packaging>pom</packaging>

  <modules>
    <module>kotlin</module>
  </modules>

  <description>Base parent POM of the de.loosetie hierarchy: JDK level, encoding and Forgejo repositories</description>
  <url>https://git.denktmit.tech/DenktMit-OSS/lt-parent</url>

  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0</url>
    </license>
  </licenses>

  <organization>
    <name>DenktMit eG</name>
    <url>https://denktmit.de</url>
  </organization>

  <developers>
    <developer>
      <name>Christian Keller</name>
      <email>info@loosetie.de</email>
      <organizationUrl>https://denktmit.de/g/ckeller</organizationUrl>
    </developer>
  </developers>

  <scm>
    <connection>scm:git:https://git.denktmit.tech/DenktMit-OSS/lt-parent.git</connection>
    <developerConnection>scm:git:ssh://git@git.denktmit.tech/DenktMit-OSS/lt-parent.git</developerConnection>
    <url>https://git.denktmit.tech/DenktMit-OSS/lt-parent</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.0.13-SNAPSHOT</revision>
    <!-- Usage reference for AI coding assistants, pinned to this release -->
    <url.ai-docs>https://git.denktmit.tech/DenktMit-OSS/lt-parent/raw/tag/v${project.version}/AI.md</url.ai-docs>

    <version.java>21</version.java>
    <targetJdk>${version.java}</targetJdk>
    <maven.compiler.release>${version.java}</maven.compiler.release>
    <maven.javadoc.skip>true</maven.javadoc.skip>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <version.maven-compiler-plugin>3.16.0</version.maven-compiler-plugin>
  </properties>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>${version.maven-compiler-plugin}</version>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <!-- Resolves 1.0.13 in the installed/deployed POMs so consumers never see the placeholder.
           Inherited by lt-parent-kotlin and lt-parent-kotlin-spring. -->
      <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>

  <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>
</project>
