update build.gradle due to JAVA_HOME management
add gitignore