<?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>net.morimekta.utils</groupId>
        <artifactId>pom</artifactId>
        <version>4.6.0</version>
        <relativePath>../utils-pom/pom.xml</relativePath>
    </parent>
    <groupId>net.morimekta.tiny</groupId>
    <artifactId>tiny-pom</artifactId>
    <version>1.0.0</version>
    <packaging>pom</packaging>

    <name>Tiny Server : POM</name>
    <description>
        Parent POM for Tiny Server.
    </description>
    <url>https://gitlab.com/morimekta/tiny-server</url>

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <kotlin.version>1.9.0</kotlin.version>
        <kotlin.code.style>official</kotlin.code.style>
    </properties>

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

    <scm>
        <url>https://gitlab.com/morimekta/tiny-server.git</url>
        <developerConnection>scm:git:ssh://git@gitlab.com/morimekta/tiny-server.git</developerConnection>
        <tag>v1.0.0</tag>
    </scm>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>net.morimekta.tiny</groupId>
                <artifactId>tiny-http</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>net.morimekta.tiny</groupId>
                <artifactId>tiny-health</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>net.morimekta.tiny</groupId>
                <artifactId>tiny-logback</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>net.morimekta.tiny</groupId>
                <artifactId>tiny-server</artifactId>
                <version>1.0.0</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <profiles>
        <profile>
            <id>lib</id>
            <activation>
                <activeByDefault>true</activeByDefault>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <modules>
                <module>tiny-http</module>
                <module>tiny-health</module>
                <module>tiny-logback</module>
                <module>tiny-server</module>
            </modules>
        </profile>
        <profile>
            <id>reporting</id>
            <modules>
                <module>tiny-http</module>
                <module>tiny-health</module>
                <module>tiny-logback</module>
                <module>tiny-server</module>
                <module>reporting</module>
            </modules>
        </profile>
        <profile>
            <id>all</id>
            <modules>
                <module>tiny-http</module>
                <module>tiny-health</module>
                <module>tiny-logback</module>
                <module>tiny-server</module>
                <module>reporting</module>
            </modules>
        </profile>
    </profiles>
</project>
