Determine version of tool used by some plugin

How I can see what version of component Gradle uses? For example, when I check sources with CheckStyle or PMD I want to know what version of appropriate tools are being used.

There is no general answer. For code quality tools, Gradle will use ‘xxx.toolVersion’ (e.g. ‘checkstyle.toolVersion’ or ‘pmd.toolVersion’). The default versions can be overridden (e.g. ‘checkstyle.toolVersion = “5.3”’).