<?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>org.xyzh</groupId>
          <artifactId>urban-lifeline</artifactId>
          <version>1.0.0</version>
    </parent>

    <groupId>org.xyzh</groupId>
    <artifactId>apis</artifactId>
    <version>1.0.0</version>
    <packaging>pom</packaging>
    <modules>
        <module>api-all</module>
        <module>api-auth</module>
        <module>api-file</module>
        <module>api-message</module>
        <module>api-system</module>
        <module>api-crontab</module>
        <module>api-ai</module>
        <module>api-bidding</module>
        <module>api-platform</module>
        <module>api-workcase</module>
    </modules>

    <properties>
        <maven.compiler.source>21</maven.compiler.source>
        <maven.compiler.target>21</maven.compiler.target>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.xyzh.apis</groupId>
                <artifactId>api-all</artifactId>
                <version>${urban-lifeline.version}</version>
            </dependency>
            <dependency>
                <groupId>org.xyzh.apis</groupId>
                <artifactId>api-auth</artifactId>
                <version>${urban-lifeline.version}</version>
            </dependency>
            <dependency>
                <groupId>org.xyzh.apis</groupId>
                <artifactId>api-file</artifactId>
                <version>${urban-lifeline.version}</version>
            </dependency>
            <dependency>
                <groupId>org.xyzh.apis</groupId>
                <artifactId>api-message</artifactId>
                <version>${urban-lifeline.version}</version>
            </dependency>
            <dependency>
                <groupId>org.xyzh.apis</groupId>
                <artifactId>api-system</artifactId>
                <version>${urban-lifeline.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.xyzh.common</groupId>
            <artifactId>common-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.xyzh.common</groupId>
            <artifactId>common-dto</artifactId>
            <version>${urban-lifeline.version}</version>
        </dependency>

        <dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo</artifactId>
        </dependency>
        
        <!-- Jakarta Servlet API (用于 HttpServletRequest 等) -->
        <dependency>
            <groupId>jakarta.servlet</groupId>
            <artifactId>jakarta.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        
        <!-- Spring Web (用于 MultipartFile 等) -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <scope>provided</scope>
        </dependency>
        
        <!-- Spring WebMVC (用于 SseEmitter 等) -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <scope>provided</scope>
        </dependency>
        
        <!-- Swagger/OpenAPI 注解 (用于 @Schema 等) -->
        <dependency>
            <groupId>io.swagger.core.v3</groupId>
            <artifactId>swagger-annotations-jakarta</artifactId>
            <version>2.2.36</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
            
</project>