Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Gradle configuration cache issues #730

Open
wants to merge 2 commits into
base: development-4.x
Choose a base branch
from

Conversation

tylerbertrand
Copy link

@tylerbertrand tylerbertrand commented Jul 16, 2024

Overview

Fixes the Gradle configuration caching issues originating from this project when executing org.asciidoctor.gradle.jvm.AsciidoctorTask. There are some remaining issues, but those are caused by the grolifant library.

Changes

The configuration caching issues in this project were primarily tasks referencing types incompatible with configuration caching. The references to these types were mostly held by AsciidoctorJExtension, which AbstractAsciidoctorTask held a reference to. To resolve this, AbstractAsciidoctorTask now reads the needed AsciidoctorJExtension properties through providers, so that holding a direct reference to AsciidoctorJExtension is no longer necessary. No input annotations were added to these providers to maintain parity with the current task behavior. The setters in AbstractAsciidoctorTask that write data through to AsciidoctorJExtension now obtain the AsciidoctorJExtension through an @Internal getter. This way, Gradle does not serialize AsciidoctorJExtension as part of the config cache entry.

Next Steps

The remaining configuration caching issues are shown in the following report.

image

The grolifant library will have to be updated or removed from this plugin to resolve these issues.

@tylerbertrand tylerbertrand force-pushed the tylerbertrand/resolve-configuration-cache-issues branch from 8b78c0d to cdf6517 Compare July 18, 2024 14:17
Replace AbstractAsciidoctorTask's direct reference to AsciidoctorJExtension with its individual properties in a configuration cache compatible fashion
@tylerbertrand tylerbertrand force-pushed the tylerbertrand/resolve-configuration-cache-issues branch from cdf6517 to 788b908 Compare July 18, 2024 15:16
@tylerbertrand tylerbertrand force-pushed the tylerbertrand/resolve-configuration-cache-issues branch from bc47b5d to 9c00da9 Compare July 30, 2024 21:58
…etters to use the internal getter to write through to the asciidoctorj extension
@tylerbertrand tylerbertrand force-pushed the tylerbertrand/resolve-configuration-cache-issues branch from 9c00da9 to b2a2537 Compare July 30, 2024 21:59
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.

None yet

1 participant