<?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>com.toolkit.platform</groupId>
        <artifactId>toolkit-platform</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>

    <artifactId>toolkit-starter</artifactId>
    <packaging>jar</packaging>
    <name>Toolkit Starter</name>
    <description>Spring Boot Starter，提供一站式自动配置和集成</description>

    <dependencies>
        <!-- 所有功能模块 -->
        <dependency>
            <groupId>com.toolkit.platform</groupId>
            <artifactId>toolkit-core</artifactId>
        </dependency>

        <!-- Lombok -->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.toolkit.platform</groupId>
            <artifactId>toolkit-db</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.toolkit.platform</groupId>
            <artifactId>toolkit-mq</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.toolkit.platform</groupId>
            <artifactId>toolkit-redis</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.toolkit.platform</groupId>
            <artifactId>toolkit-file</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- Spring Boot Starter -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure-processor</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- 条件注解支持 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-logging</artifactId>
            <optional>true</optional>
        </dependency>

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

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <skip>true</skip> <!-- 不是可执行jar -->
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>