Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin Dependency Resolution #15

Open
mandrachek opened this issue May 10, 2018 · 0 comments
Open

Plugin Dependency Resolution #15

mandrachek opened this issue May 10, 2018 · 0 comments

Comments

@mandrachek
Copy link

I'm attempting to use findbugs and pmd in my buildscript, eg:

apply plugin: 'pmd'
apply plugin: 'findbugs'

According to the documentation (findbugs | pmd) these two plugins add additional dependency configurations, 'findbugs' and 'pmd'.

Adding these to my offlineDependencies { configurations } doesn't result in an error, but it looks like the dependencies are determined at the runtime of the plugin, and as such aren't available when running ./gradlew updateOfflineRepository

I was able to work around this by running ./gradlew check updateOfflineRepository which causes the dependency configurations for these tools to be resolved and the offline repository populated with the needed dependencies.

I imagine this could be an issue with a number of the default gradle plugins. While this is an ok workaround, I wonder if there's any way to find and force evaluation of plugin provided dependency configurations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant