I am not sure if this is supported by fileTree. I searched the document and all examples used concrete (absolute or relative) paths. This is what I want to do.
ext {
externalProjectRoot "c:/AnotherProject"
}
implementation fileTree(dir: ${externalProjectRoot}/lib', include: '*.jar')
If I do the following, it works.
implementation fileTree(dir: 'c:/AnotherProject/lib', include: '*.jar')
So I suspect that the fileTree function doesn't support variable for the dir attribute. If not, what other options do I have?
Thanks!