Skip to content

Skip running checks during IntelliJ IDEA sync#49843

Closed
erichaagdev wants to merge 1 commit intospring-projects:mainfrom
erichaagdev:skip-check-ide-sync
Closed

Skip running checks during IntelliJ IDEA sync#49843
erichaagdev wants to merge 1 commit intospring-projects:mainfrom
erichaagdev:skip-check-ide-sync

Conversation

@erichaagdev
Copy link
Copy Markdown
Contributor

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.

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 <ehaag@gradle.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 30, 2026
@wilkinsona
Copy link
Copy Markdown
Member

Thanks, @erichaagdev, but we don't want to introduce IDE-specific logic into the build. What works well for us is importing a fresh checkout into the IDE and then making changes.

@wilkinsona wilkinsona closed this Mar 31, 2026
@wilkinsona wilkinsona added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants