novoda/gradle-static-analysis-plugin

Support task configuration avoidance

tasomaniac opened this issue · 1 comments

Did some benchmarking for task configuration avoidance.
This was done on Open Link With using Android Gradle Plugin 3.4.0-alpha08 and Gradle 5.1-rc-1.

Without SAP With SAP
image image

As can be seen from above 368 tasks in total had to be configured when SAP is applied. It must almost all of the Android tasks.

Here is a quite nice example of how to support task avoidance by keeping backward compatibility. https://github.com/melix/jmh-gradle-plugin/blob/a034aa88805b7a06fa9c5a825d573554b2aa23e2/src/main/groovy/me/champeau/gradle/JMHPlugin.groovy#L289-L296

Released with version 1.0 and fixed by #184 #186 #189