add build.gradle and move src code to src/main/java