<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         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>org.dromara.warm-mybatis-flex</groupId>
    <artifactId>warm-flow-mybatis-flex</artifactId>
    <version>1.6.6</version>
    <packaging>pom</packaging>

    <name>warm-flow-mybatis-flex</name>
    <description>Warm-Flow is a flow</description>
    <url>https://github.com/dromara/warm-flow</url>

    <issueManagement>
        <system>Github Issue</system>
        <url>https://github.com/dromara/warm-flow/issues</url>
    </issueManagement>
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>https://apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>
    <scm>
        <connection>https://github.com/dromara/warm-flow.git</connection>
        <url>https://github.com/dromara/warm-flow</url>
    </scm>
    <developers>
        <developer>
            <id>Warm-Flow</id>
            <name>stupidkid</name>
            <email>290631660@qq.com</email>
        </developer>
    </developers>

    <modules>
        <module>warm-flow-mybatis-flex-core</module>
        <module>warm-flow-mybatis-flex-sb-starter</module>
        <module>warm-flow-mybatis-flex-sb3-starter</module>
        <module>warm-flow-mybatis-flex-solon-plugin</module>
        <module>warm-flow-mybatis-flex-test</module>
    </modules>

    <properties>
        <warm-flow>${project.version}</warm-flow>

        <!-- 环境版本 -->
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.version>1.8</java.version>
        <java17.version>17</java17.version>
        <java17.path>C:\dev\Amazon Corretto\jdk17.0.6_10\bin\</java17.path>

        <!-- 生态版本 -->
        <spring.boot.version>2.7.18</spring.boot.version>
        <springboot3.version>3.0.1</springboot3.version>
        <solon.version>2.8.4</solon.version>

        <!-- orm库版本 -->
        <mybatis-flex.version>1.9.3</mybatis-flex.version>

    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- SpringBoot的依赖配置-->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>${spring.boot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- solon的依赖配置-->
            <dependency>
                <groupId>org.noear</groupId>
                <artifactId>solon</artifactId>
                <version>${solon.version}</version>
            </dependency>

            <dependency>
                <groupId>org.noear</groupId>
                <artifactId>solon.data</artifactId>
                <version>${solon.version}</version>
            </dependency>

            <dependency>
                <groupId>org.noear</groupId>
                <artifactId>solon.web.staticfiles</artifactId>
                <version>${solon.version}</version>
            </dependency>

            <dependency>
                <groupId>org.noear</groupId>
                <artifactId>solon-api</artifactId>
                <version>${solon.version}</version>
            </dependency>

            <dependency>
                <groupId>org.noear</groupId>
                <artifactId>solon.logging.logback</artifactId>
                <version>${solon.version}</version>
            </dependency>

            <!-- mybatis-flex 依赖 -->
            <dependency>
                <groupId>com.mybatis-flex</groupId>
                <artifactId>mybatis-flex-spring-boot-starter</artifactId>
                <version>${mybatis-flex.version}</version>
            </dependency>
            <dependency>
                <groupId>com.mybatis-flex</groupId>
                <artifactId>mybatis-flex-solon-plugin</artifactId>
                <version>${mybatis-flex.version}</version>
            </dependency>
            <dependency>
                <groupId>com.mybatis-flex</groupId>
                <artifactId>mybatis-flex-core</artifactId>
                <version>${mybatis-flex.version}</version>
            </dependency>
            <dependency>
                <groupId>com.mybatis-flex</groupId>
                <artifactId>mybatis-flex-processor</artifactId>
                <version>${mybatis-flex.version}</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.dromara.warm</groupId>
                <artifactId>warm-flow-core</artifactId>
                <version>${warm-flow}</version>
            </dependency>

            <dependency>
                <groupId>org.dromara.warm</groupId>
                <artifactId>warm-flow-plugin-modes-sb</artifactId>
                <version>${warm-flow}</version>
            </dependency>

            <dependency>
                <groupId>org.dromara.warm</groupId>
                <artifactId>warm-flow-plugin-modes-solon</artifactId>
                <version>${warm-flow}</version>
            </dependency>

            <dependency>
                <groupId>org.dromara.warm</groupId>
                <artifactId>warm-flow-plugin-ui-sb-web</artifactId>
                <version>${warm-flow}</version>
            </dependency>

            <dependency>
                <groupId>org.dromara.warm-mybatis-flex</groupId>
                <artifactId>warm-flow-mybatis-flex-core</artifactId>
                <version>${warm-flow}</version>
            </dependency>

            <dependency>
                <groupId>org.dromara.warm-mybatis-flex</groupId>
                <artifactId>warm-flow-mybatis-flex-sb-starter</artifactId>
                <version>${warm-flow}</version>
            </dependency>

            <dependency>
                <groupId>org.dromara.warm-mybatis-flex</groupId>
                <artifactId>warm-flow-mybatis-flex-sb3-starter</artifactId>
                <version>${warm-flow}</version>
            </dependency>

            <dependency>
                <groupId>org.dromara.warm-mybatis-flex</groupId>
                <artifactId>warm-flow-mybatis-flex-solon-plugin</artifactId>
                <version>${warm-flow}</version>
            </dependency>

        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.2.0</version>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Implementation-Version>${warm-flow}</Implementation-Version>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>2.10.4</version>
                        <configuration>
                            <show>private</show>
                            <nohelp>true</nohelp>
                            <charset>UTF-8</charset>
                            <encoding>UTF-8</encoding>
                            <docencoding>UTF-8</docencoding>
                            <additionalparam>-Xdoclint:none</additionalparam>
                        </configuration>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.6</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>0.5.0</version>
                        <extensions>true</extensions>
                        <configuration>
                            <!--  对应maven的setting.xml<servers> <server> <id>ossrh</id> -->
                            <publishingServerId>ossrh</publishingServerId>
                            <!-- 是否自动发布，false需要在手动发布：https://central.sonatype.com/publishing -->
                            <!--https://repo1.maven.org/maven2/org/dromara/-->
                            <autoPublish>true</autoPublish>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-deploy-plugin</artifactId>
                        <version>2.8.2</version>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>


    <!-- 打包 mvn clean package -DskipTests-->
    <!-- 安装本地仓库 mvn clean install -DskipTests-->
    <!-- 发布中央仓库 mvn clean deploy  -DskipTests -P release-->
    <!-- 统一修改版本号：mvn versions:set -DnewVersion=1.3.5  -->
    <!-- mvn versions:commit -->
    <!-- mvn versions:revert -->

</project>
