Skip to content

Commit

Permalink
IntelliJ: exclude some directories from being indexed
Browse files Browse the repository at this point in the history
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 apache#469.
  • Loading branch information
snazy committed Jan 13, 2025
1 parent 1d77ce5 commit fcfc5ce
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build-logic/src/main/kotlin/polaris-root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ if (System.getProperty("idea.sync.active").toBoolean()) {
isDownloadJavadoc = false // was 'true', but didn't work
isDownloadSources = false // was 'true', but didn't work
inheritOutputDirs = true

val rootProjectDir = projectDir

excludeDirs =
excludeDirs +
setOf(
rootProjectDir.resolve("build-logic/.kotlin"),
rootProjectDir.resolve("integration-tests/build"),
rootProjectDir.resolve("site/resources/_gen"),
rootProjectDir.resolve("site/build"),
rootProjectDir.resolve("logs"),
rootProjectDir.resolve("polaris-venv"),
rootProjectDir.resolve(".idea"),
) +
allprojects.map { prj -> prj.layout.buildDirectory.asFile.get() }
}

project.settings {
Expand Down

0 comments on commit fcfc5ce

Please sign in to comment.