Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Gradle build for existing IDEA project?

I have a Groovy project in Intellij IDEA 13.1.5 that I want to build with Gradle. So I have installed Gradle itself and enabled the Gradle plugin in IDEA.

But how can I now build the project (or better: start to write the Gradle build file) from within IDEA? I have created a build.gradle file in the project's module, which is recognized by IDEA correctly as Gradle file, according to the icon next to the file name.

Beside that I don't know how to continue from there. IDEA documentation says I should open the Gradle Tools window, but I can find it in View --> Tool Windows.

Any ideas?

like image 715
Matthias Avatar asked Oct 25 '14 00:10

Matthias


1 Answers

The best way to accomplish this while still being in the same directory is by going to File -> New -> Module From Existing Sources.. and then selecting your build.gradle.

like image 184
Muhatashim Avatar answered Sep 29 '22 11:09

Muhatashim