-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Task creation avoidance #165
Comments
This is the behaviour comes from Gradle official code quality plugin mechanism, such as https://github.com/gradle/gradle/blob/master/subprojects/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/AbstractCodeQualityPlugin.java Then you have two options:
|
No, that is not true. I've commented out To add, other tasks extending the |
Right, the change 578b7a1 is introduced only to SpotBugs plugin, and it seems that other code quality plugin no longer extends |
BTW which tasks do you mean? In my understanding CheckStylePlugin still creates tasks for each source set. |
This is regarding creation the actual You can check this yourself by running |
current way create tesk instances even though it is not necessary. this change applies the same way with the official CodeNarc plugin validating configuration in setter method: https://github.com/gradle/gradle/blob/df7ac484a2facbb4503ba911666367de22b1d16a/subprojects/code-quality/src/main/groovy/org/gradle/api/plugins/quality/CodeNarcExtension.java
For every
sourceSet
,spotbugs-gradle-plugin
creates aspotbugsSourceSetName
task which is created during configuration. This hurts performance for larger projects with multiple source sets, as 1000+ tasks are created.I've pinpointed the task creation to the method
com.github.spotbugs.SpotBugsPlugin.verify()
, where the task objects are instantiated withp.getTasks().withType(SpotBugsTask.class).forEach(task ->
.The text was updated successfully, but these errors were encountered: