Skip to content

Fix InstrumentWithJacocoOfflineTask plugin validation under Gradle 9.5#43

Merged
ogolberg merged 1 commit intomainfrom
fix/validate-plugins-gradle-9-5
May 5, 2026
Merged

Fix InstrumentWithJacocoOfflineTask plugin validation under Gradle 9.5#43
ogolberg merged 1 commit intomainfrom
fix/validate-plugins-gradle-9-5

Conversation

@ogolberg
Copy link
Copy Markdown
Member

@ogolberg ogolberg commented May 5, 2026

Summary

  • Gradle 9.5.0 (adopted in 6461e35) tightened plugin validation: task classes must declare caching behavior, and file inputs must declare a normalization strategy. :testkit-plugin:validatePlugins started failing on main with two errors on InstrumentWithJacocoOfflineTask.
  • Annotated the task with @CacheableTask (jar instrumentation is deterministic given its inputs) and marked the jar input with @Classpath, matching the existing classpath normalization.

Test plan

  • ./gradlew :testkit-plugin:validatePlugins passes locally
  • CI Build job succeeds on this branch

🤖 Generated with Claude Code

Gradle 9.5.0 tightened plugin validation and now requires task classes
to declare caching behavior and a normalization strategy for file inputs.
Annotate the task with @CacheableTask and mark the jar input with
@classpath (matching the existing classpath normalization).

Generated with Claude Code
@ogolberg ogolberg merged commit ae8fb49 into main May 5, 2026
1 check passed
@ogolberg ogolberg deleted the fix/validate-plugins-gradle-9-5 branch May 5, 2026 16:44
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