spotbugs / spotbugs-gradle-plugin

https://plugins.gradle.org/plugin/com.github.spotbugs
Apache License 2.0
180 stars 68 forks source link

Spotbugs plugin for gradle 6.0.0-beta4 is broken in Netbeans 19 #991

Open victorwss opened 1 year ago

victorwss commented 1 year ago

Trying to build a gradle project that uses the spotbugs plugin in Netbeans makes Netbeans fail the build with an empty message error and mark the project as unloadable and fallbacking to Java 5 (yikes!).

Netbeans 19 (but it also happened in older versions) Java 21 (but I also tested with 20) Gradle 8.4 (but I also tested with 8.3) Spotbugs gradle plugin 6.0.0-beta4 Spotbugs 4.7.3

Since it runs perfectly when running Gradle on CMD and it only goes nuts in Netbeans, I really think that this bug is actually in Netbeans side (see https://github.com/apache/netbeans/issues/4779). However, it might be worth to give a look into the plugin side to check if there is something fishy or maybe providing a possible workaround.

I created a minimal Hello World with gradle and spotbugs to show the problem: https://github.com/victorwss/min-spotbugs-gradle

KengoTODA commented 1 year ago

Thanks for making this mcve! I'm not NetBeans user so I cannot check, but it would be really helpful for who will debug this problem.