Andrew Bucknell
Andrew Bucknell

Reputation: 1950

How do I remove gradle support from an intellij project?

I have a scala/sbt project, and there is a build.gradle file from when I was experimenting one time. Intellij saw the build.gradle and has enabled gradle for the project. Can I turn off gradle for the project?

I have deleted my build.gradle and any gradle directories in my project but I keep getting messsages like the below, so I'm guessing there is a setting in intellij I need to turn off.

7:31 pm The IDE modules below were removed by the Gradle import:
                knot-alpha

                You can open dialog to select the ones you need to restore.

Upvotes: 10

Views: 14232

Answers (2)

ahuemmer
ahuemmer

Reputation: 2067

In addition to Fracisco Mateos answer:

It should be enough to remove the gradle.xml from the hidden .idea directory. This will remove the Gradle "nature" of the project in IntelliJ without having to delete all your workspace metadata.

Removing the build.gradle, settings.gradle, gradle.properties and gradle directory probably isn't necessary, but, of course, makes sense in order to have a clean project.

Upvotes: 24

Cisco
Cisco

Reputation: 23052

  1. Close the project
  2. Remove all Gradle related files and directories:
    • build.gradle
    • settings.gradle
    • gradle.properties
    • gradle/
  3. Delete the hidden .idea/ directory
  4. Reimport project

Upvotes: 13

Related Questions