Exclude directory from indexing within gradle projects
Answered
For example, when I import a project, the release dir is not excluded, I need to do it manually every time, is there a way to instruct gradle to not make the IDE import it as a "normal" dir ?
Please sign in to leave a comment.
You need to set exclude at build.gradle, IDEA will always overwrite project settings at File | Project structure with settings taken from build.gradle.
> You need to set exclude at build.gradle
@... How to do that?
Please check related thread: https://discuss.gradle.org/t/how-can-i-declare-an-exclusion-on-my-source-folder/22821
You can exclude a directory in IntelliJ with this Gradle (Kotlin) config: