<?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>

    <groupId>tech.mgl</groupId>
    <artifactId>mgl-maven-base-properties</artifactId>
    <version>5.6.0</version>

    <packaging>pom</packaging>

    <name>mgl-maven-base-properties</name>
    <licenses>
        <license>
            <name>MGL License, Version 1.0</name>
            <url>https://mgl.tech/licenses/LICENSE-2.0</url>
        </license>
    </licenses>
    <developers>
        <developer>
            <name>HOTPOT</name>
            <email>hotpot@mgl.tech</email>
            <organization>MGL Tech, Inc.</organization>
            <organizationUrl>https://mgl.tech</organizationUrl>
        </developer>
    </developers>
    <scm>
        <url>https://mgl.tech</url>
    </scm>
    <url>
        https://mgl.tech/p/mgl-base
    </url>

    <description>
        base properties bom
    </description>

    <properties>
        <java.version>21</java.version>
        <kotlin.version>2.1.0</kotlin.version>
        <kotlin-dokka.version>1.9.20</kotlin-dokka.version>
        <project.encode>UTF-8</project.encode>
        <project.build.sourceEncoding>${project.encode}</project.build.sourceEncoding>
        <project.reporting.outputEncoding>${project.encode}</project.reporting.outputEncoding>
        <!--        <resource.delimiter>@</resource.delimiter>-->
        <maven.compiler.source>${java.version}</maven.compiler.source>
        <maven.compiler.target>${java.version}</maven.compiler.target>

        <!-- 一些插件版本 -->
        <maven-compiler-plugin.vserion>3.13.0</maven-compiler-plugin.vserion>
        <maven-jar-plugin.vserion>3.4.2</maven-jar-plugin.vserion>
        <maven-antrun-plugin.version>3.1.0</maven-antrun-plugin.version>
        <maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version>
        <maven-clean-plugin.version>3.4.0</maven-clean-plugin.version>
        <maven-dependency-plugin.version>3.8.0</maven-dependency-plugin.version>
        <maven-deploy-plugin.version>3.1.3</maven-deploy-plugin.version>
        <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
        <maven-failsafe-plugin.version>3.4.0</maven-failsafe-plugin.version>
        <maven-help-plugin.version>3.5.0</maven-help-plugin.version>
        <maven-install-plugin.version>3.1.3</maven-install-plugin.version>
        <maven-invoker-plugin.version>3.8.0</maven-invoker-plugin.version>
        <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
        <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
        <maven-source-plugin.version>3.3.1</maven-source-plugin.version>
        <maven-surefire-plugin.version>3.4.0</maven-surefire-plugin.version>
        <maven-war-plugin.version>3.4.0</maven-war-plugin.version>

        <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>

        <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>

        <maven-javadoc-plugin.vserion>3.8.0</maven-javadoc-plugin.vserion>

        <central-publishing-maven-plugin.version>0.6.0</central-publishing-maven-plugin.version>
    </properties>
    <profiles>
        <profile>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <id>build</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>${maven-gpg-plugin.version}</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.sonatype.central</groupId>
                        <artifactId>central-publishing-maven-plugin</artifactId>
                        <version>${central-publishing-maven-plugin.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <publishingServerId>central</publishingServerId>
                            <autoPublish>true</autoPublish>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <!-- 应该是不能有build 或者 plugin  ， 只能放到profiles里 不然继承的项目启动后第一时间启动项目时候报错 @符号的错误，刷新之后可以启动 所以都放到profiles里 -->

    <!--    <distributionManagement>
            <repository>
                <id>oss</id>
                <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
            </repository>
            <snapshotRepository>
                <id>oss</id>
                <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
            </snapshotRepository>
            <downloadUrl>https://s01.oss.sonatype.org/content/groups/public</downloadUrl>
        </distributionManagement>-->


</project>