This message was deleted.
# configuration-cache
s
This message was deleted.
o
To me, it seems that the problem is that a non-transient project reference is being serialized to the context. I would expect that the field is transient and restored by Gradle on loading using a dependnecy injection mechanism or a custom
readResolve()
. I am still learning Gradle internals, but I do have some Jenkins serialization trauma 😞
m
I looked at your fork, and at least https://github.com/jjohannes/JGiven/blob/cc3f67a7b4b39f9f78599c2cea18c42c95870c73/[…]lugin/src/main/java/com/tngtech/jgiven/gradle/JGivenPlugin.java is suspicious, because it captures the reference to the
Test
task. The next line captures the reference to the
ReportingExtension
. A solution would be to build the provider of the output location outside of
configureEach
callback, and only capture the provider inside. We definitely need better lambda attribution in the report, finding these is not an easy task :(
j
Thank you for taking a look. I thought I have tried removing that, but apparently I did not do it (right). The fix you suggested works!