File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,14 @@ tasks {
2121 test {
2222 // DeclarativeConfigValidationTest walks ../instrumentation for metadata.yaml files,
2323 // so changes to those files must invalidate this task's build cache entry.
24- inputs.files(fileTree(rootDir.resolve(" instrumentation" )) { include(" **/metadata.yaml" ) })
24+ // Eagerly resolve to a concrete file list (rather than passing a FileTree rooted at
25+ // the instrumentation directory) to avoid Gradle's implicit-dependency validation
26+ // flagging overlap with sibling subprojects' build/ output directories.
27+ val metadataYamlFiles = fileTree(rootDir.resolve(" instrumentation" )) {
28+ include(" **/metadata.yaml" )
29+ exclude(" **/build/**" )
30+ }.files
31+ inputs.files(metadataYamlFiles)
2532 .withPropertyName(" instrumentationMetadataYamlFiles" )
2633 .withPathSensitivity(PathSensitivity .RELATIVE )
2734 }
You can’t perform that action at this time.
0 commit comments