Skip to content

SCANGRADLE-305 : FIX Gradle scanner 7.0+ SonarTask now triggers compilation#462

Draft
rombirli wants to merge 4 commits intomasterfrom
rombirli/bug-scanner7+-triggers-compilation
Draft

SCANGRADLE-305 : FIX Gradle scanner 7.0+ SonarTask now triggers compilation#462
rombirli wants to merge 4 commits intomasterfrom
rombirli/bug-scanner7+-triggers-compilation

Conversation

@rombirli
Copy link
Contributor

No description provided.

@hashicorp-vault-sonar-prod
Copy link

hashicorp-vault-sonar-prod bot commented Mar 16, 2026

SCANGRADLE-305

@rombirli rombirli force-pushed the rombirli/bug-scanner7+-triggers-compilation branch 3 times, most recently from 48713b6 to 4bc8887 Compare March 17, 2026 09:30
@rombirli rombirli closed this Mar 17, 2026
@rombirli rombirli force-pushed the rombirli/bug-scanner7+-triggers-compilation branch from 17ab9ee to 4e3a40c Compare March 17, 2026 13:00
@rombirli rombirli reopened this Mar 17, 2026
…ompilation

The sonar task had a hard dependsOn(sonarResolver) which forced resolver
tasks to run, resolving compileClasspath and triggering compilation in
multi-module projects. Changed to mustRunAfter to preserve ordering
without forcing execution. Changed @InputFiles to @internal on resolver
files to avoid requiring their existence.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqube-next
Copy link

rombirli and others added 2 commits March 17, 2026 16:39
…g compilation

When -Dsonar.gradle.skipCompile=true is set, the sonar task no longer
depends on sonarResolver tasks, preventing classpath resolution from
triggering compilation in multi-module projects. Also removed eager
mkdirs() call during configuration phase that created the build directory
prematurely; the resolver task now creates its output directory at
execution time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant