How do I specify which checkstyle library to use?
The Checkstyle Plugin manual ( http://www.gradle.org/docs/current/userguide/checkstyle_plugin.html ) has an Dependency Management entry that states “checkstyle – The Checkstyle libraries to use”.
But I’m unable to figure out how to set that entry…
Aha, it seems I can specify the version like this, is that correct?
I’m used to specifying plugin classpaths in the buildscript block, that’s why I was confused…
You can, but it’s only necessary if the checkstyle dependency you wish to use has coordinates other than the default “com.puppycrawl.tools:checkstyle”. Otherwise, Lance’s solution is simpler and preferable.