Of course. Findbugs extension documentation says:
sourceSets: source installations are analyzed as part of the validation and build tasks.
And the example above shows an example that does exactly what you want:
apply plugin: "findbugs" findbugs { sourceSets = [sourceSets.main] }
i.e. just analyze the main source, not the test source Set.
Jb nizet
source share