adding java to scala projects to publish javadocs