Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19870

Converting Maven plugin to Gradle plugin

$
0
0

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();

Viewing all articles
Browse latest Browse all 19870

Trending Articles