Adding javadoc generation task to Gradle.