Skip to content

Commit

Permalink
fix jar task dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
littleaj committed Jul 8, 2019
1 parent 1cf96aa commit b2997b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions collectd/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ plugins {
apply from: "$buildScriptsDir/common-java.gradle"

// Since we're building the shadow jar, we have no use in the jar contains only CollectD code.
jar.enabled = false
jar {
dependsOn shadowJar
enabled = false
}

shadowJar {
classifier = ''
Expand All @@ -49,6 +52,3 @@ dependencies {
testCompile files(collectDLibPath)
}

// Building the shadow (fat) jar after compiling sources.
shadowJar.dependsOn assemble

8 changes: 4 additions & 4 deletions distributions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ apply from: "$buildScriptsDir/common-java.gradle"
archivesBaseName = 'applicationinsights-all'

// Since we're building the shadow jar, we have no use in the jar contains only CollectD code.
jar.enabled = false
jar {
dependsOn shadowJar
enabled = false
}

shadowJar {
classifier = ''
Expand All @@ -46,6 +49,3 @@ dependencies {
compile project(':logging:log4j2')
compile project(':logging:logback')
}

// Building the shadow (fat) jar after compiling sources.
shadowJar.dependsOn assemble

0 comments on commit b2997b8

Please sign in to comment.