plugins {
    id 'corda.common-library'
    id 'corda.common-publishing'
}

description 'Kafka Message Bus Impl'

dependencies {

    constraints {
        implementation(libs.slf4j.api)
    }
    
    compileOnly 'org.osgi:osgi.core'
    compileOnly 'org.osgi:org.osgi.service.component.annotations'

    implementation project(":libs:messaging:messaging")
    implementation project(":libs:messaging:message-bus")
    implementation project(":libs:schema-registry:schema-registry")
    implementation project(":libs:configuration:configuration-core")
    implementation project(":libs:configuration:configuration-merger")
    implementation project(":libs:metrics")
    implementation project(":libs:tracing")
    implementation project(":libs:utilities")
    api project(":libs:serialization:serialization-avro")

    implementation platform("net.corda:corda-api:$cordaApiVersion")
    implementation "net.corda:corda-avro-schema"
    implementation "net.corda:corda-base"
    implementation "net.corda:corda-config-schema"
    implementation 'org.jetbrains.kotlin:kotlin-osgi-bundle'
    implementation libs.kafka.client

    implementation libs.typesafe.config

    testImplementation project(":testing:test-utilities")

    testRuntimeOnly 'org.osgi:osgi.core'
    testRuntimeOnly libs.log4j.slf4j
}