Skip to content

Commit

Permalink
Merge pull request #966 from microsoft/fix_task_dependencies
Browse files Browse the repository at this point in the history
fix jar task dependencies
  • Loading branch information
littleaj authored Jul 8, 2019
2 parents 1cf96aa + b2997b8 commit f7e307e
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 f7e307e

Please sign in to comment.