<?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">
    <parent>
        <artifactId>klaw-boot-common</artifactId>
        <groupId>cn.klaw</groupId>
        <version>5.2.1-RELEASE</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>klaw-common-scheduletask</artifactId>
    <version>5.2.2-RELEASE</version>
    <dependencies>
        <dependency>
            <groupId>cn.klaw</groupId>
            <artifactId>klaw-common-core</artifactId>
            <version>${project.parent.version}</version>
        </dependency>
        <dependency>
            <groupId>cn.klaw</groupId>
            <artifactId>klaw-scheduletask-client</artifactId>
            <version>${project.parent.version}</version>
            <exclusions>
                <exclusion>  <!-- 每个排除项必须是一个独立的 <exclusion> 块 -->
                    <groupId>cn.klaw</groupId>
                    <artifactId>xxl-job-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>cn.klaw</groupId>
            <artifactId>klaw-scheduletask-model</artifactId>
            <version>${project.parent.version}</version>
            <exclusions>
                <exclusion>  <!-- 每个排除项必须是一个独立的 <exclusion> 块 -->
                    <groupId>cn.klaw</groupId>
                    <artifactId>klaw-common-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>cn.klaw</groupId>
            <artifactId>xxl-job-core</artifactId>
            <version>${project.parent.version}</version>
        </dependency>
        <dependency>
            <groupId>org.sonatype.central</groupId>
            <artifactId>central-publishing-maven-plugin</artifactId>
            <version>0.7.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <!--用于发布：插件和仓库等信息-->
    <profiles>
        <profile>
            <id>boot3</id>
            <activation>
                <jdk>[17,)</jdk>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <gpg.executable>gpg</gpg.executable>
                <gpg.passphrase>aiKlaw@2025xAS</gpg.passphrase>
            </properties>
            <distributionManagement>
                <snapshotRepository>
                    <!--此id必须与setting.xml的servers=>server=>id中指定的一致-->
                    <id>central</id>
                    <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
                <repository>
                    <id>central</id>
                    <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
            </distributionManagement>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>org.sonatype.central</groupId>
                <artifactId>central-publishing-maven-plugin</artifactId>
                <version>0.7.0</version>
                <extensions>true</extensions>
                <configuration>
                    <publishingServerId>central</publishingServerId>
                </configuration>
            </plugin>

            <!--发布源码-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.3.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!-- Javadoc -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.11.2</version>
                <configuration>
                    <source>21</source>  <!-- 与项目的 Java 版本一致 -->
                    <doclint>none</doclint>  <!-- 禁用严格的 Javadoc 检查 -->
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!--gpg加密-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>3.2.7</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <!--用于发布：开源协议...-->
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <!-- 项目描述 -->
    <name>klaw-common-scheduletask</name>
    <description>klaw-common-scheduletask工具库</description>
    <url>https://gitee.com/klaw2023/klaw-common.git</url>
    <!--用于发布：项目链接-->
    <scm>
        <url>https://gitee.com/klaw2023/klaw-common.git</url>
        <connection>https://gitee.com/klaw2023/klaw-common.git</connection>
    </scm>
    <!--用于发布：开发者信息-->
    <developers>
        <developer>
            <id>klaw</id>
            <name>klaw</name>
            <email>klawmaven@outlook.com</email>
            <roles>
                <role>Project Manager</role>
                <role>Architect</role>
            </roles>
        </developer>
    </developers>
</project>
