Skip to content

Commit cd65398

Browse files
authored
Adds dependency declarations to order tasks (#237)
The missing dependency declarations result in errors in the release tasks - pointing to possibility of incorrect result depending on order in which these tasks execute. The release tasks are skipped during normal :build jobs so build passes, but the artifacts snapshot generation for release fails.
1 parent c3ac980 commit cd65398

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

exporters/metrics/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ dependencies {
3434
testImplementation(testLibraries.opentelemetry_sdk_testing)
3535
testImplementation(testLibraries.opencensus_shim)
3636
}
37+
38+
test.dependsOn ':shared-resourcemapping:shadowJar'

exporters/trace/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ task generateVersionResource {
5050
def propertiesFile = new File(folder.getAbsolutePath(), "version.properties")
5151
propertiesFile.write("exporter.version=${project.version}")
5252
}
53-
}
53+
}
54+
55+
test.dependsOn ':shared-resourcemapping:shadowJar'

shared/resourcemapping/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ publishing {
5555
}
5656
}
5757
}
58-
}
58+
}
59+
60+
// This is to fix the explicit dependency error which comes when publishing via the `candidate` task
61+
publishMavenPublicationToMavenRepository.dependsOn jar

0 commit comments

Comments
 (0)