Fix Gradle plugin validation and enforce it in inspections #1070
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
alvarosanchez
The existing
masterbranch fails its own:native-gradle-plugin:validatePluginstask with 14 validation problems.Minimal reproducer
Expected result
:native-gradle-plugin:validatePluginssucceedsActual 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 .