This is an excerpt from Manning's book Gradle in Action - corrected 9052019. Login to get full access to this book.
You’re prepared for applying the static code analysis tools to your build. You’ll start by using the Checkstyle plugin.
Listing 12.7. Applying and configuring the Checkstyle plugin as script plugin