"Build Project CMD-F9" to default to gradle
Answered
Fairly new to Intellij Idea. Moved recently from Eclipse.
I am trying to get "Build Project CMD-F9" to use Gradle.
I googled - a lot. I don't find the "Runner" UI element, nor
the "Delegate Runner to Gradle" option. I am using the Ultimate edition.
Appreciate any help. I disabled Maven and Ant plugins hoping
that would help. Here is the screenshot:
Please sign in to leave a comment.
Make sure the project is imported from build.gradle: https://www.jetbrains.com/help/idea/gradle.html#gradle_import_project_start or link the existing project to Gradle: https://www.jetbrains.com/help/idea/gradle.html#link_gradle_project .
Serge Baranov
I imported the project from Gradle. It is a fairly large project with several team members. Most use Eclipse. Very few use Intellij Idea. So I was unable to check with my team. However, this really isn't a show-stopper, just something nice to have. I defined a "run configuration" for the build and using that. Thanks.
For the Gradle imported projects you will have more options in this dialog.
See if deleting disabled_plugins.txt file from the Configuration directory: https://www.jetbrains.com/help/idea/tuning-the-ide.html#config-directory and restarting the IDE helps.
Also try to delete .idea directory from the project and reimport from build.gradle.
Serge Baranov
Excellant! Deleting .idea directory and re-importing worked. Thank you!