This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new f1dfc978 IntelliJ: exclude some directories from being indexed (#720)
f1dfc978 is described below

commit f1dfc9783add6afb405e3dc4cf1ba9d33587e34f
Author: Robert Stupp <[email protected]>
AuthorDate: Tue Jan 14 10:21:03 2025 +0100

    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.
---
 build-logic/src/main/kotlin/polaris-root.gradle.kts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/build-logic/src/main/kotlin/polaris-root.gradle.kts 
b/build-logic/src/main/kotlin/polaris-root.gradle.kts
index 1146891b..12d322e4 100644
--- a/build-logic/src/main/kotlin/polaris-root.gradle.kts
+++ b/build-logic/src/main/kotlin/polaris-root.gradle.kts
@@ -44,6 +44,19 @@ 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
+
+      excludeDirs =
+        excludeDirs +
+          setOf(
+            projectDir.resolve("build-logic/.kotlin"),
+            projectDir.resolve("integration-tests/build"),
+            projectDir.resolve("site/resources/_gen"),
+            projectDir.resolve("site/build"),
+            projectDir.resolve("logs"),
+            projectDir.resolve("polaris-venv"),
+            projectDir.resolve(".idea"),
+          ) +
+          allprojects.map { prj -> prj.layout.buildDirectory.asFile.get() }
     }
 
     project.settings {

Reply via email to