How to use Checkstyle plugin

Hi,
I am using gradle 2.14.1 and trying to use the checkstyle plugin.

I have added the block
apply plugin: ‘checkstyle’

But checkstyle is not installed when I run gradlew tasks.
Has anyone come across this? Please provide direction.