﻿<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>io.gitee.smartunity</groupId>
        <artifactId>rocks-platform</artifactId>
        <version>1.0.0</version>
    </parent>


    <properties>
        <maven.deploy.skip>false</maven.deploy.skip>
    </properties>

    <artifactId>rocks-sight</artifactId>
    <packaging>jar</packaging>

    <name>Rock-Sight</name>
    <description>可观测性模块（指标 / 链路追踪 / 健康检查）</description>

    <dependencies>
        <dependency>
            <groupId>io.gitee.smartunity</groupId>
            <artifactId>rocks-common</artifactId>
        </dependency>

        <!-- Spring Web（@RestController / @GetMapping 等） -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!-- Micrometer 2.x + Actuator -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

        <!-- SpringDoc OpenAPI（@Tag / @Operation） -->
        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
        </dependency>

        <!-- Micrometer Tracing (Brave 实现，默认) -->
        <dependency>
            <groupId>io.micrometer</groupId>
            <artifactId>micrometer-tracing-bridge-brave</artifactId>
        </dependency>

        <!-- OpenTelemetry 2.x OTLP 导出器（可选，用于对接 Jaeger / SkyWalking） -->
        <dependency>
            <groupId>io.opentelemetry</groupId>
            <artifactId>opentelemetry-exporter-otlp</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- rocks-cache-adaptor（健康检查编译依赖） -->
        <dependency>
            <groupId>io.gitee.smartunity</groupId>
            <artifactId>rocks-cache-adaptor</artifactId>
        </dependency>

        <!-- rocks-mq-adaptor（健康检查编译依赖） -->
        <dependency>
            <groupId>io.gitee.smartunity</groupId>
            <artifactId>rocks-mq-adaptor</artifactId>
        </dependency>

        <!-- rocks-job-adaptor（任务监控编译依赖） -->
        <dependency>
            <groupId>io.gitee.smartunity</groupId>
            <artifactId>rocks-job-adaptor</artifactId>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Redis 监控（optional，Docker/集群模式引入 starter-data-redis 时生效） -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
            <optional>true</optional>
        </dependency>
    </dependencies>

</project>
