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

Converting Maven plugin to Gradle plugin

$
0
0

Yes, I want the dependency jars. And thanks for your patience :slight_smile:

E.g. when I do the getFiles() like:

        Set<Configuration> configurations = getProject().getConfigurations();
        for (Configuration configuration : configurations) {
            if (includeDependenciesConfigurations.contains(configuration.getName())) {
                Set<File> files = configuration.getFiles();
                .. do other stuff
            }
        } 

then it gives me:

Caused by: java.lang.IllegalStateException: Resolving dependency configuration 'implementation' is not allowed as it is defined as 'canBeResolved=false'.
Instead, a resolvable ('canBeResolved=true') dependency configuration that extends 'implementation' should be resolved.

So I can’t seem to be able to get the files for the implementation configuration.

Btw besides the File object I also need the extension of the dependency.

Thanks for your help so far,
Marcel


Viewing all articles
Browse latest Browse all 19850

Trending Articles