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 project's root directory.
build.gradle
Then just File -> Invalidate Caches / Restart
File
Invalidate Caches / Restart
Here is a basic build.gradle for Java projects:
plugins { id 'java' } sourceCompatibility = '1.8' targetCompatibility = '1.8' version = '1.2.1'