Open Vampire opened 5 years ago
Really interesting, if we can handle backward compatibility well, it should be nice. :)
Well, you could rename the task to spotbugs
, then add a simple no-op task called spotbugsMain
that depends on spotbugs
and emits a deprecation warning, then at some point remove it.
Alternatively to catch the guys that read no warnings and / or have it in some scripts as an intermediary step between deprecation warning and removal make the task fail the build so that a meaningful error message can be given and then later on remove it.
Hm, actually I'm unsure now. The standard code quality plugins shipped with Gradle like codenarc, pmd, findbugs or jdepend all follow the ´blaMain` convention. :-/ I'll open a ticket to Gradle first to see what they think about it. I'll probably tend to staying in-line with the standard CQ plugins if they don't change it.
It seems that the discussion at that issue is still in progress, so I removed milestone from this issue.
For most standard Gradle plugins, the
Main
is left out for themain
source set in task names, likecompileJava
vs.compileTestJava
orcompileOtherSourceSetJava
and so on. Maybe it would make sense to follow suit and also name the SpotBugs task for the main source set justspotbugs
? Just an idea, if you don't like it, just close it. :-)