How to create Java gradle project

后端 未结 8 691
醉梦人生
醉梦人生 2020-12-04 06:09

How to create Java Gradle project from command line?

It should create standard maven folder layout like on the picture below.

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 06:55

    To create a Java project: create a new project directory, jump into it and execute

    gradle init --type java-library
    

    Source folders and a Gradle build file (including a wrapper) will be build.

提交回复
热议问题