From e1e55a2ab2d9823fb711492ebf721f98fe650ad0 Mon Sep 17 00:00:00 2001 From: Eric Haag Date: Mon, 30 Mar 2026 14:45:16 -0500 Subject: [PATCH] Skip running checks during IntelliJ IDEA sync Introduce conditional logic for making the `jar` task depend on `check` in `buildSrc`. This ensures that verification tasks do not run when the `idea.sync.active` system property is present. This prevents IntelliJ IDEA syncs from failing due to formatting issues or failing tests. A successful sync ensures developers retain full IDE functionality (like code completion and navigation) needed to easily resolve those very issues. Checks will still run as part of regular build tasks and cause the build to fail if there are issues. Signed-off-by: Eric Haag --- buildSrc/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 3ef8533c912b..ad75b22e73cc 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -187,4 +187,11 @@ eclipse { } } -jar.dependsOn check +if (isRegularBuild(providers)) { + jar.dependsOn(check) +} + +static boolean isRegularBuild(ProviderFactory providers) { + def isIdeSync = providers.systemProperty("idea.sync.active") + return !isIdeSync.isPresent() +}