configurations {
    // Exclude JPA and PostgreSQL from inherited dependencies (Phase 3: Redis migration)
    implementation.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-data-jpa'
    implementation.exclude group: 'org.postgresql', module: 'postgresql'

}

dependencies {

    implementation 'org.springframework.boot:spring-boot-starter-actuator'

    // Redis for AI data reading and image URL caching
    implementation 'org.springframework.boot:spring-boot-starter-data-redis'

    // OpenFeign for Stable Diffusion/DALL-E API
    implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'

    // Azure Blob Storage for CDN
    implementation "com.azure:azure-storage-blob:${azureStorageVersion}"

    // Resilience4j for Circuit Breaker
    implementation "io.github.resilience4j:resilience4j-spring-boot3:${resilience4jVersion}"
    implementation "io.github.resilience4j:resilience4j-circuitbreaker:${resilience4jVersion}"

    // Jackson for JSON
    implementation 'com.fasterxml.jackson.core:jackson-databind'
}

// 실행 JAR 파일명 설정
bootJar {
    archiveFileName = 'content-service.jar'
}
