Skip to content

Commit

Permalink
Allow to publish with ./gradlew publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Olivelli committed Jun 29, 2021
1 parent 07371ba commit 8e4f811
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions producer-v3-kafka/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ shadowJar {
jar.enabled = false
assemble.dependsOn(shadowJar)

project.afterEvaluate {
project.tasks.generatePomFileForMavenPublication.enabled = false
project.tasks.publishMavenPublicationToMavenRepository.enabled = false
}

compileTestJava {
options.compilerArgs += '-parameters'
}
Expand Down
5 changes: 5 additions & 0 deletions producer-v3-pulsar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ shadowJar {
jar.enabled = false
assemble.dependsOn(shadowJar)

project.afterEvaluate {
project.tasks.generatePomFileForMavenPublication.enabled = false
project.tasks.publishMavenPublicationToMavenRepository.enabled = false
}

dependencies {
api project(':producer-v3')
implementation("org.apache.pulsar:pulsar-client:${pulsarVersion}")
Expand Down
4 changes: 4 additions & 0 deletions producer-v4-kafka/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ shadowJar {

jar.enabled = false
assemble.dependsOn(shadowJar)
project.afterEvaluate {
project.tasks.generatePomFileForMavenPublication.enabled = false
project.tasks.publishMavenPublicationToMavenRepository.enabled = false
}

compileTestJava {
options.compilerArgs += '-parameters'
Expand Down
4 changes: 4 additions & 0 deletions producer-v4-pulsar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ shadowJar {

jar.enabled = false
assemble.dependsOn(shadowJar)
project.afterEvaluate {
project.tasks.generatePomFileForMavenPublication.enabled = false
project.tasks.publishMavenPublicationToMavenRepository.enabled = false
}

compileTestJava {
options.compilerArgs += '-parameters'
Expand Down
4 changes: 4 additions & 0 deletions source-kafka/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ shadowJar {

jar.enabled = false
assemble.dependsOn(shadowJar)
project.afterEvaluate {
project.tasks.generatePomFileForMavenPublication.enabled = false
project.tasks.publishMavenPublicationToMavenRepository.enabled = false
}

test {
// Add dependency on jar task, since it will be main target for testing
Expand Down

0 comments on commit 8e4f811

Please sign in to comment.