Fix errors in Javadoc references
Add rudimentary support for Gradle