Gradle Init

Java Library:

gradle init --type java-library

Java Application:

gradle init --type java-application