-
Notifications
You must be signed in to change notification settings - Fork 2
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
NullPointerException in PluginLoader #19
Comments
That's interesting... that's pretty much how we do it ourselves (we use our own gradle plugin, you can check the code here) We do (redacted version)
Notice that defining the I'd try changing your snippet to just
and see what happens. You could also try our plugin, but shouldn't make a difference towards this issue... |
Ok, so I've fixed it by adding a: findbugsPlugins('com.monits:findbugs-plugin:0.2.0') { ModuleDependency d ->
d.transitive = false
} I have no idea what this does but without it I couldn't make it work in any other way. It's the same with your code (the redacted version you pasted) - if you remove this I'll leave this issue open and let you decide whether it should be closed or you're going to investigate it more. Thanks for the support! |
Just to be sure, have you tried removing |
Yes, I tried and the same thing happens - NPE. |
Ok, so this is an issue definitely. I probably need to make dependencies compile-only / shade them as needed. Adding the |
Great, thanks, I'm willing to try anything you come up with. :) |
A little development on this. Using: findbugsPlugins 'com.monits:findbugs-plugin:0.2.0@jar' Instead of: findbugsPlugins 'com.monits:findbugs-plugin:0.2.0' Also fixes the issue. I have no idea what this syntax means, but it might help you figure out the problem. :) |
Hi, I'm using Gradle 3.5 and FindBugs 3.0.1 with a couple of other plugins. This is my configuration:
Without the last line, everything works as expected. When I include it, I get:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: