Skip to content

Commit 1dfc56d

Browse files
committed
Fix implicit dependency on generatePomProperties from sourcesJar
sourcesJar includes main.resources srcDirs (including pomPropertiesDir) but had no dependency on generatePomProperties. Add explicit dependsOn(pomPropertiesFileTree) consistent with the processResources wiring.
1 parent 32cc790 commit 1dfc56d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dd-java-agent/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ tasks.named("processResources") {
2727
dependsOn(pomPropertiesFileTree)
2828
}
2929

30+
tasks.named("sourcesJar") {
31+
dependsOn(pomPropertiesFileTree)
32+
}
33+
3034
sourceSets {
3135
// The special pre-check must be compiled with Java 6 to detect unsupported
3236
// Java versions and prevent issues for users that still using them.

0 commit comments

Comments
 (0)