I have looked around quite a bit and haven\'t found the best solution to convert an existing IntelliJ project to Gradle. I work in a team environment and we currently share
Add:
build.gradle
in your root project folder, and use plugin for example:
apply plugin: 'idea' //and standard one apply plugin: 'java'
and with this fire from command line:
gradle cleanIdea
and after that:
gradle idea
After that everything should work