Updating to 1.0.0 of the gradle plugin

Also added some javadocs and updated to version 2.2.1 of gradle.