gradle init --type java-application

gradle init --type'basic', 'groovy-library', 'java-application', 'java-library', 'pom', 'scala-library'
gradle init --type java-application

vim src/main/java/Main.java

public class Main
{
    public static final void main(String[] args)
    {
        System.out.println("test File");
    }
}

編譯

gradle build

執行

java -cp build/classes/main/ Main