resolve source and javadoc artifacts using the gradle api