Skip to content

Fix java.lang.NoClassDefFoundError: org/gradle/reporting/HtmlWriterTools#2316

Open
tcmulcahy wants to merge 1 commit intocashapp:masterfrom
tcmulcahy:tomm/agent/gradle-8-html-report-compat
Open

Fix java.lang.NoClassDefFoundError: org/gradle/reporting/HtmlWriterTools#2316
tcmulcahy wants to merge 1 commit intocashapp:masterfrom
tcmulcahy:tomm/agent/gradle-8-html-report-compat

Conversation

@tcmulcahy
Copy link
Copy Markdown

@tcmulcahy tcmulcahy commented Apr 9, 2026

Fix java.lang.NoClassDefFoundError: org/gradle/reporting/HtmlWriterTools when using latest Paparazzi with Gradle 8.x

This PR makes Paparazzi compatible with Gradle 8.x again so that projects can upgrade to Paparazzi 2.0.0 independenly of upgrading to Gradle 9.x

Fixes #2251

Summary

  • avoid a hard runtime dependency on Gradle 9's HtmlWriterTools when rendering Paparazzi class reports
  • keep clipboard copy buttons on newer Gradle versions, but gracefully skip them when the helper API is unavailable

Testing

  • I verified that this fixes the NoClassDefFoundError we were encountering with Paparazzi 2.0.0 previously

@tcmulcahy tcmulcahy marked this pull request as draft April 9, 2026 21:33
@tcmulcahy tcmulcahy force-pushed the tomm/agent/gradle-8-html-report-compat branch from b1fd4dc to 26974a9 Compare April 9, 2026 21:33
@tcmulcahy tcmulcahy force-pushed the tomm/agent/gradle-8-html-report-compat branch from 26974a9 to bf763c9 Compare April 9, 2026 22:03
@tcmulcahy tcmulcahy changed the title Handle Gradle 8 HTML report compatibility Fix java.lang.NoClassDefFoundError: org/gradle/reporting/HtmlWriterTools Apr 9, 2026
@tcmulcahy tcmulcahy marked this pull request as ready for review April 9, 2026 22:04
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.

2.0.0_alpha04 Release

1 participant