Skip to content

Commit

Permalink
Merge pull request #281 from C0urante/fix-packaging
Browse files Browse the repository at this point in the history
Remove Kafka artifacts from the connector's packaged tar artifact
  • Loading branch information
xuan616 authored Jun 19, 2020
2 parents 40580fe + aa1e7ec commit b5a15a9
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ allprojects {
targetCompatibility = JavaVersion.VERSION_1_8
}

def withoutKafka = {
exclude group: 'org.apache.kafka', module: 'connect-api'
exclude group: 'org.apache.kafka', module: 'connect-transforms'
exclude group: 'org.apache.kafka', module: 'kafka-clients'
}

// END ALL PROJECTS

project.ext {
Expand Down Expand Up @@ -207,17 +213,20 @@ project(':kcbq-connector') {
"com.google.cloud:google-cloud-storage:$googleCloudVersion",
"com.google.auth:google-auth-library-oauth2-http:$googleAuthVersion",
"com.google.code.gson:gson:$googleCloudGsonVersion",
"io.debezium:debezium-core:$debeziumVersion",
"org.apache.kafka:connect-api:$kafkaVersion",
"org.apache.kafka:kafka-clients:$kafkaVersion",
"org.apache.kafka:connect-runtime:$kafkaVersion",
"org.slf4j:slf4j-api:$slf4jVersion",
)

compile "io.debezium:debezium-core:$debeziumVersion", withoutKafka

compileOnly (
"org.apache.kafka:connect-api:$kafkaVersion"
)

testCompile (
"junit:junit:$junitVersion",
"org.mockito:mockito-core:$mockitoVersion",
"org.mockito:mockito-inline:$mockitoVersion"
"org.mockito:mockito-inline:$mockitoVersion",
"org.apache.kafka:connect-api:$kafkaVersion"
)
}

Expand Down Expand Up @@ -257,10 +266,9 @@ project('kcbq-api') {
}

dependencies {
compile (
"com.google.cloud:google-cloud-bigquery:$googleCloudVersion",
"org.apache.kafka:connect-api:$kafkaVersion"
)
compile "com.google.cloud:google-cloud-bigquery:$googleCloudVersion"

compileOnly "org.apache.kafka:connect-api:$kafkaVersion"
}

artifacts {
Expand All @@ -284,13 +292,6 @@ project('kcbq-api') {
project('kcbq-confluent') {
apply plugin: 'distribution'

configurations.all {
resolutionStrategy {
// depending on debezium results in us pulling in the most recent kafka version.
force 'org.apache.kafka:connect-api:2.5.0', 'org.apache.kafka:kafka-clients:2.5.0'
}
}

distributions {
main {
baseName = 'kcbq-confluent'
Expand Down Expand Up @@ -321,23 +322,30 @@ project('kcbq-confluent') {
}

dependencies {
runtime project(':kcbq-connector')

compile (
project(':kcbq-connector'),
project(':kcbq-api'),

"io.confluent:kafka-connect-avro-converter:$ioConfluentVersion",
"io.confluent:kafka-schema-registry-client:$ioConfluentVersion",
"org.apache.avro:avro:$avroVersion",
"org.apache.kafka:connect-api:$kafkaVersion",
"org.apache.kafka:kafka-clients:$kafkaVersion",
"org.slf4j:slf4j-api:$slf4jVersion",
)

compile "io.confluent:kafka-connect-avro-converter:$ioConfluentVersion", withoutKafka
compile "io.confluent:kafka-schema-registry-client:$ioConfluentVersion", withoutKafka

compileOnly (
"org.apache.kafka:connect-api:$kafkaVersion",
"org.apache.kafka:kafka-clients:$kafkaVersion"
)

testCompile (
"junit:junit:$junitVersion",
"org.mockito:mockito-core:$mockitoVersion",
"org.mockito:mockito-inline:$mockitoVersion"
"org.mockito:mockito-inline:$mockitoVersion",
"org.apache.kafka:connect-api:$kafkaVersion",
"org.apache.kafka:kafka-clients:$kafkaVersion"

)
}

Expand Down

0 comments on commit b5a15a9

Please sign in to comment.