How to specify IntelliJ Exclude Directories using Gradle?

前端 未结 3 1381
轮回少年
轮回少年 2020-12-15 03:57

Using IntelliJ to open a build.gradle file, in the \"Import Project from Gradle\" window, the \"Excluded Roots\" are pre-populated with the .gradle

3条回答
  •  时光取名叫无心
    2020-12-15 04:55

    If you are using the Gradle Kotlin DSL, use the following snippet:

    idea {
      module {
        excludeDirs.add(file("..."))
      }
    }
    

提交回复
热议问题