Fix CodeNarc violations.
Fix plugin build to work with Gradle 2.0.
Add source and javadoc jars to plugin build.
Update Gradle wrapper to 2.0.