Commit 71c67d5
committed
Follow existing pattern for generated resources
Follow the same pattern as includedAgentDir/includedJarFileTree:
- declare pomPropertiesDir and pomPropertiesFileTree near the top
- add dependsOn(pomPropertiesFileTree) to processResources
- declare main.resources.srcDir(pomPropertiesDir) in the sourceSets block
- register generatePomProperties (WriteProperties) near generateAgentJarIndex
- wire pomPropertiesFileTree.builtBy(generatePomProperties)
This avoids the need for a task-provider-mapped srcDir since WriteProperties
outputs a single file (not a directory), so the fileTree + builtBy approach
is the correct way to express the dependency.1 parent e05f359 commit 71c67d5
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
325 | 330 | | |
326 | 331 | | |
327 | 332 | | |
328 | | - | |
| 333 | + | |
329 | 334 | | |
330 | 335 | | |
331 | 336 | | |
332 | 337 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 338 | + | |
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| |||
0 commit comments