How to create Java gradle project

后端 未结 8 690
醉梦人生
醉梦人生 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:39

    Unfortunately you cannot do it in one command. There is an open issue for the very feature.

    Currently you'll have to do it by hand. If you need to do it often, you can create a custom gradle plugin, or just prepare your own project skeleton and copy it when needed.

    EDIT

    The JIRA issue mentioned above has been resolved, as of May 1, 2013, and fixed in 1.7-rc-1. The documentation on the Build Init Plugin is available, although it indicates that this feature is still in the "incubating" lifecycle.

提交回复
热议问题