Ben Bader
10/24/2025, 3:52 PMdef myExtensionOutput = extensions.getByName("myExtension").outputFilePath
tasks.register("someTask") {
inputs.file(myExtensionOutput)
}
The reason they do this is because the file at the output path is expected to just be there as a result of a previous task execution. There is no implied dependency on the source task in the graph.
My question is, is this wrong? Why? It feels wrong to me but I can't think of any actual problem they'd encounter and I'd like to check my assumptions. (clearly the better solution is to pass the path in as a property/env-var/well-known-file, and that's what I've recommended)Martin
10/24/2025, 4:04 PMBen Bader
10/24/2025, 4:05 PMMartin
10/24/2025, 4:05 PMthe better solution is to pass the path in as a property/env-var/well-known-fileenv-var/well-known-file doesn't really work if you want other tasks in your graph to be input to the plugin
Martin
10/24/2025, 4:06 PMProperty works but then going through extensions feels OK?Martin
10/24/2025, 4:06 PMysb33r
10/24/2025, 4:17 PMsomeTask.
HTH.Benedikt Ritter
10/24/2025, 5:26 PMBen Bader
10/24/2025, 5:27 PMBen Bader
10/24/2025, 5:27 PMBenedikt Ritter
10/24/2025, 5:28 PMBen Bader
10/24/2025, 5:30 PMBenedikt Ritter
10/24/2025, 5:39 PMBen Bader
10/24/2025, 5:40 PMBenedikt Ritter
10/24/2025, 5:42 PMBen Bader
10/24/2025, 5:46 PMVampire
10/24/2025, 6:06 PM