Add .gitignore and change jdk for travis