improvements of build.gradle and javadoc
added test for JDK 8 by travis.ci