如何在Intellij IDEA 13.0.1社区中创建基于gradle的Java项目 [英] How to create a gradle-based Java Project in Intellij IDEA 13.0.1 Community
问题描述
我所做的是File-> New Project- >摇篮。并且一个项目显示出来,但没有完成(例如,它没有src文件夹)。
然后我添加 apply plugin'idea' code>在build.gradle中。当我参考IntelliJ IDEA中的所有任务时。在Eclipse + Gradle插件中,没有
idea,cleanIdea,ideaProject
来设置IntelliJ IDEA。
我想知道如何在Intellij IDEA中执行此操作。
$ b $当创建新的Gradle项目时,选择自动为空内容根目录创建目录。 >
新项目将包含这些目录。
I want to start a empty project with Gradle in Intellij IDEA but it seems not so convenient as Eclipse does.
What I did is File->New Project->Gradle. And a project shows up but it's not completed (it has no src folder for example).
And I add apply plugin 'idea'
in the build.gradle. When I refer to the All tasks in IntelliJ IDEA. There are no idea,cleanIdea,ideaProject
for me to set up a IntelliJ IDEA.
In Eclipse+Gradle plugin, just create a new gradle project and everything is ready.
I want to know how to do that in Intellij IDEA.
Thanks
When creating new Gradle project, select "Create directories for empty content roots automatically".
New project will have those directories.
这篇关于如何在Intellij IDEA 13.0.1社区中创建基于gradle的Java项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!