bootJar {
    archiveFileName = 'distribution-service.jar'
}

dependencies {
    // Kafka for event publishing
    implementation 'org.springframework.kafka:spring-kafka'

    // OpenFeign for external channel APIs
    implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'

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

    // Playwright for browser automation
    implementation 'com.microsoft.playwright:playwright:1.41.0'

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