how to build gradle application with java 6 from cmd code example Example: gradle init java application gradle init --type java-application