Add gradle support and fix gitignore