<?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>io.micronaut</groupId>
        <artifactId>micronaut-parent</artifactId>
        <version>3.4.3</version>
    </parent>

    <groupId>io.archimedesfw.maven.micronaut</groupId>
    <artifactId>micronaut-base-parent</artifactId>
    <version>3.4.3</version>
    <packaging>pom</packaging>

    <modules>
        <module>micronaut-java-parent</module>
        <module>micronaut-kotlin-parent</module>
    </modules>

    <properties>
        <jdk.version>17</jdk.version>
        <release.version>17</release.version>

        <!-- Since Micronaut 3.4.1, Micronaut uses version 2.22.3, but this version is not in Maven Central,
             so we will use the previous version until this question will be closed with the Micronaut team. -->
        <maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>
    </properties>

    <name>${project.artifactId}</name>
    <description>This project tries to be an effort to simplify your Maven pom.xml files when you are using Micronaut.
        You should not use this module directly, instead here you can find two flavors:
        one for Java and the other for Kotlin. Both of them are ready for production use,
        but if you don't want to use them directly in your pom.xml you simply can look like it as an example.
    </description>
    <url>https://www.archimedesfw.io/</url>
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <developers>
        <developer>
            <id>alejandropg</id>
            <name>Alejandro Pérez</name>
        </developer>
    </developers>
    <scm>
        <connection>scm:git:git://github.com/archimedes-projects/archimedes-maven-micronaut.git</connection>
        <developerConnection>scm:git:ssh://github.com:archimedes-projects/archimedes-maven-micronaut.git</developerConnection>
        <tag>main</tag>
        <url>https://github.com/archimedes-projects/archimedes-maven-micronaut</url>
    </scm>

    <profiles>
        <profile>
            <id>internal-release-own-project</id>
            <distributionManagement>
                <snapshotRepository>
                    <id>ossrh</id>
                    <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
            </distributionManagement>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>3.0.1</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <version>1.6.13</version>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>true</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
