plugins {
    id 'airbyte-java-connector'
    id "io.airbyte.gradle.docker"
    id 'airbyte-connector-docker-convention'
}

airbyteJavaConnector {
    cdkVersionRequired = '0.20.4'
    features = ['db-sources']
    useLocalCdk = false
}

application {
    mainClass = 'io.airbyte.integrations.source.kafka.KafkaSource'
    applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0']
}

dependencies {
    api 'org.apache.avro:avro:1.11.4'
    api 'org.bouncycastle:bcprov-jdk15on:1.67'   // for fixing vulnerability
    api 'org.xerial.snappy:snappy-java:1.1.10.4' // for fixing vulnerability
    api 'org.apache.sshd:sshd-common:2.12.0'// for fixing vulnerability
    api 'org.apache.mina:mina-core:2.0.27'  // for fixing vulnerability
    api 'net.minidev:json-smart:2.5.2' // for fixing vulnerability


    implementation 'software.amazon.msk:aws-msk-iam-auth:2.3.1'
    implementation 'org.apache.kafka:kafka-clients:3.2.1'
    implementation 'org.apache.kafka:connect-json:3.2.1'
    implementation 'io.confluent:kafka-avro-serializer:7.2.1'


    testImplementation 'org.testcontainers:kafka:1.19.4'
}
