More changes to *.gradle

Now put the dependencies in build.gradle. Also add javadoc links.