Skip to content

Commit f1dfc97

Browse files
authored
IntelliJ: exclude some directories from being indexed (#720)
When editing `.gitignore`, IntelliJ warns about a couple directories being ignored but not excluded from being indexed and searched. This change ignores the mentioned directories, except the one for DW, which is going away with #469.
1 parent 5aa76fb commit f1dfc97

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build-logic/src/main/kotlin/polaris-root.gradle.kts

+13
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ if (System.getProperty("idea.sync.active").toBoolean()) {
4444
isDownloadJavadoc = false // was 'true', but didn't work
4545
isDownloadSources = false // was 'true', but didn't work
4646
inheritOutputDirs = true
47+
48+
excludeDirs =
49+
excludeDirs +
50+
setOf(
51+
projectDir.resolve("build-logic/.kotlin"),
52+
projectDir.resolve("integration-tests/build"),
53+
projectDir.resolve("site/resources/_gen"),
54+
projectDir.resolve("site/build"),
55+
projectDir.resolve("logs"),
56+
projectDir.resolve("polaris-venv"),
57+
projectDir.resolve(".idea"),
58+
) +
59+
allprojects.map { prj -> prj.layout.buildDirectory.asFile.get() }
4760
}
4861

4962
project.settings {

0 commit comments

Comments
 (0)