← Back to Pull requests

Fix Gradle plugin validation and enforce it in inspections #1070

Closed
unknown closed this pull request without merging on Nov 16, 2026 08:16 UTC
View on GitHub
unknown unknown commented on Nov 06, 2026 12:08 UTC
Author

The existing master branch fails its own :native-gradle-plugin:validatePlugins task with 14 validation problems.

Minimal reproducer


./gradlew -Porg.graalvm.build.core=true \
  -Dorg.gradle.internal.max.validation.errors=100 \
  :native-gradle-plugin:validatePlugins \
  --full-stacktrace --console=plain

Expected result

:native-gradle-plugin:validatePlugins succeeds

Actual result

The task fails with exit code 1. The full report contains 0 warnings and 14 errors:

1. Type 'org.graalvm.buildtools.gradle.tasks.GenerateNativeImageLauncherTask' must be annotated either with @CacheableTask or with @DisableCachingByDefault.
2. Type 'org.graalvm.buildtools.gradle.tasks.GenerateDynamicAccessMetadata' must be annotated either with @CacheableTask or with @DisableCachingByDefault.
3. Type 'org.graalvm.buildtools.gradle.tasks.ListLibrariesMissingMetadata' must be annotated either with @CacheableTask or with @DisableCachingByDefault.
4. Type 'org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask' must be annotated either with @CacheableTask or with @DisableCachingByDefault.
5. Type 'org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask' property 'classpathJar' is annotated with @InputFile but missing a normalization strategy.
6. Type 'org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask' property 'testListDirectory' is annotated with @InputDirectory but missing a normalization strategy.
7. Type 'org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask' property 'compileOptions.configurationFileDirectories' is annotated with @InputFiles but missing a normalization strategy.
8. Type 'org.graalvm.buildtools.gradle.tasks.scanner.JarAnalyzerTransform' must be annotated either with @CacheableTransform or with @DisableCachingByDefault.
9. Type 'org.graalvm.buildtools.gradle.tasks.scanner.JarAnalyzerTransform' property 'inputArtifact' is annotated with @InputArtifact but missing a normalization strategy.
10. Type 'org.graalvm.buildtools.gradle.tasks.CollectReachabilityMetadata' must be annotated either with @CacheableTask or with @DisableCachingByDefault.
11. Type 'org.graalvm.buildtools.gradle.tasks.ValidateNativeImageLayerSelectionTask' must be annotated either with @CacheableTask or with @DisableCachingByDefault.
12. Type 'org.graalvm.buildtools.gradle.tasks.MetadataCopyTask' must be annotated either with @CacheableTask or with @DisableCachingByDefault.
13. Type 'org.graalvm.buildtools.gradle.tasks.NativeRunTask' must be annotated either with @CacheableTask or with @DisableCachingByDefault.
14. Type 'org.graalvm.buildtools.gradle.tasks.NativeRunTask' property 'image' is annotated with @InputFile but missing a normalization strategy.

These issues make it harder to support configuration cache/isolated projects in the downstream micronaut gradle plugin. See https://github.com/micronaut-projects/micronaut-gradle-plugin/pull/1397 .

Diff: 363 lines (+272 / -91) across 4 files Reviewer: alvarosanchez Review duration: 14167m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 363 lines diff across 4 files
0.43
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.353
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1070"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42.7% (MEDIUM) · Higher = larger blast radius
42.7%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16.9% · Safe to merge
16.9%