<?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>org.hzhub</groupId>
    <artifactId>hzhub-system</artifactId>
    <version>1.0.0</version>
    <packaging>jar</packaging>

    <name>HZHub System Service</name>
    <description>系统管理服务 - 用户/角色/权限/租户/OSS/监控</description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.5.8</version>
        <relativePath/>
    </parent>

    <properties>
        <java.version>17</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <hzhub-ai.version>3.0.0</hzhub-ai.version>
        <mssql-jdbc.version>11.2.3.jre17</mssql-jdbc.version>
        <spring-boot-admin.version>3.5.5</spring-boot-admin.version>
        <warm-flow.version>1.8.2</warm-flow.version>
        <velocity.version>2.3</velocity.version>
        <anyline.version>8.7.2-20250603</anyline.version>
        <mapstruct-plus.version>1.5.0</mapstruct-plus.version>
        <mapstruct-plus.lombok.version>0.2.0</mapstruct-plus.lombok.version>
        <lombok.version>1.18.38</lombok.version>
        <therapi-javadoc.version>0.15.0</therapi-javadoc.version>
    </properties>

    <dependencies>
        <!-- ====== hzhub-ai 通用模块（需要 hzhub-ai 先 mvn install） ====== -->
        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-core</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-doc</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-mybatis</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-translation</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-oss</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-log</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-excel</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-sms</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-tenant</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-security</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-web</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-idempotent</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-sensitive</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-encrypt</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-websocket</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-sse</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-social</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-ratelimiter</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <dependency>
            <groupId>org.hzhub</groupId>
            <artifactId>hzhub-common-mail</artifactId>
            <version>${hzhub-ai.version}</version>
        </dependency>

        <!-- ====== warm-flow 工作流 ====== -->
        <dependency>
            <groupId>org.dromara.warm</groupId>
            <artifactId>warm-flow-mybatis-plus-sb3-starter</artifactId>
            <version>${warm-flow.version}</version>
        </dependency>
        <dependency>
            <groupId>org.dromara.warm</groupId>
            <artifactId>warm-flow-plugin-ui-sb-web</artifactId>
            <version>${warm-flow.version}</version>
        </dependency>

        <!-- ====== velocity 代码生成 ====== -->
        <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity-engine-core</artifactId>
            <version>${velocity.version}</version>
        </dependency>
        <dependency>
            <groupId>org.anyline</groupId>
            <artifactId>anyline-environment-spring-data-jdbc</artifactId>
            <version>${anyline.version}</version>
        </dependency>
        <dependency>
            <groupId>org.anyline</groupId>
            <artifactId>anyline-data-jdbc-mysql</artifactId>
            <version>${anyline.version}</version>
        </dependency>

        <!-- ====== 数据库 ====== -->
        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>

        <!-- ====== 监控 ====== -->
        <dependency>
            <groupId>de.codecentric</groupId>
            <artifactId>spring-boot-admin-starter-client</artifactId>
            <version>${spring-boot-admin.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

        <!-- ====== 测试 ====== -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <finalName>${project.artifactId}</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.14.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>com.github.therapi</groupId>
                            <artifactId>therapi-runtime-javadoc-scribe</artifactId>
                            <version>${therapi-javadoc.version}</version>
                        </path>
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                            <version>${lombok.version}</version>
                        </path>
                        <path>
                            <groupId>org.springframework.boot</groupId>
                            <artifactId>spring-boot-configuration-processor</artifactId>
                            <version>3.5.8</version>
                        </path>
                        <path>
                            <groupId>io.github.linpeilie</groupId>
                            <artifactId>mapstruct-plus-processor</artifactId>
                            <version>${mapstruct-plus.version}</version>
                        </path>
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok-mapstruct-binding</artifactId>
                            <version>${mapstruct-plus.lombok.version}</version>
                        </path>
                    </annotationProcessorPaths>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                        </exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>public</id>
            <name>huawei nexus</name>
            <url>https://mirrors.huaweicloud.com/repository/maven/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
    </repositories>
</project>
