Summary
Input property rootFolders is referenced as an absolute path string .
If you use a gradle remote cache absolute paths may differ based on the machine used for the build.
Description
I believe we could change this to a ConfigurableFileCollection similar to graphqlFiles fix the issue
Version
1.4.5, but pretty sure this is still on master.
Good catch, thank! The reason rootFolders is a ListProperty<String> and not a List<DirectoryProperty> is that, in theory at least, the src/main/graphql folder can contain something else that .graphql files and we want the task to stay UP-TO-DATE even if an unrelated file changes.
This PR changes the paths so they are relative and the task can be relocable
Most helpful comment
Good catch, thank! The reason
rootFoldersis aListProperty<String>and not aList<DirectoryProperty>is that, in theory at least, thesrc/main/graphqlfolder can contain something else that.graphqlfiles and we want the task to stayUP-TO-DATEeven if an unrelated file changes.This PR changes the paths so they are relative and the task can be relocable