add Travis CI config for Java