Closed jjohannes closed 11 months ago
No problem. Happy I figured this out. I am also not super happy with the subclass.
I tried injecting via the plugin already. It's not working. The service property can't be found when the code in the closure executes (if CC is turned on).
I think this is, because the code executes after the state has been loaded from the cache. Which is the reason why there is a problem in the first place. At that point, the plugin context is not available anymore.
It can be injected via the plugin. "Just" need to store a reference in a variable while we can.
Updated the PR – PTAL.
The test also starts failing (on master) with newer Gradle versions. Not sure anymore if what was reported in #261 is exactly this issue. But in any case this is an issue with Gradle 8.5
.
@jjohannes can you allow edits on your PR?
can you allow edits on your PR?
Should be turned on.
Strange, I get a permission denied :thinking:
Strange. The flag is set here in my UI. Feel free to just copy the solution into a new PR/branch.
My bad, had a typo in the branch name
Thank you @melix!
@melix Do you have time to cut a release that includes this fix?
This is not supported by the Configuration Cache. Instead, we inject an ArchiveOperations service.
Fixes #229