Commit 461d3e8
authored
Make index tasks cacheable and improve input fingerprinting (#11896)
chore(build): Make `agentJarIndex` task cacheable
Also, it improves the way gradle fingerprints the input
The class path is already declared as an input if the JavaExec spec, and
doesn't need an additinal declaration.
The included dir is `dd-java-agent/build/generated/included`
we don't really care about `included/` or where it is, but the task
cares about what's below, like `inst/foo/Bar.classdata`. So the idea is
to tell gradle to apply that normalization for fingerprinting.
https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/PathSensitivity.html#RELATIVE
Additional note, that in CI the build dir of projects is relocated under
```
..../workspace/dd-java-agent/build
```
chore(build): Make instrumentation index tasks cacheable
The class path is already declared as an input if the JavaExec spec, and
doesn't need an additinal declaration.
Co-authored-by: brice.dutheil <brice.dutheil@datadoghq.com>1 parent 296ad7f commit 461d3e8
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
| 352 | + | |
352 | 353 | | |
| 354 | + | |
| 355 | + | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | 156 | | |
| 157 | + | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments