Hmm, I’ve seen this “canBeResolved=false” before and never took the time to understand why.
I wonder if you can do
ConfigurationContainer cc = project.getConfigurations();
Configuration resolvable = cc.detachedConfiguration();
Configuration impl = cc.getByName("implementation");
resolvable.extendsFrom(impl);
Set<File> files = resolvable.getFiles();
Or perhaps
Configuration resolvable = impl.copyRecursive();
Set<File> files = resolvable.getFiles();