Skip to content

Commit 6261635

Browse files
committed
fix: Make depends on instrument task
The 'instrument' plugin changes destination around for now, it needs to be depended on for the time being.
1 parent 9357793 commit 6261635

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

buildSrc/src/main/kotlin/datadog/gradle/plugin/csi/CallSiteInstrumentationPlugin.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ abstract class CallSiteInstrumentationPlugin : Plugin<Project>{
187187

188188
// make task depends on compile
189189
dependsOn(mainCompileTask)
190+
// Workaround for instrument plugin modifying compile tasks
191+
if (project.pluginManager.hasPlugin("instrument")) {
192+
dependsOn("instrumentJava")
193+
}
190194
}
191195

192196
// make all sourcesets' class tasks depend on call site generator

0 commit comments

Comments
 (0)