This message was deleted.
# configuration-cache
s
This message was deleted.
d
I just did this, what you want is a
BuildService
1
what also worked for me was to set the existing
BuildListener
using
useLogger
gradle.useLogger new BuildFixListener()
j
yeah, i said that. my problem is that i just want a callback. i have a few different things that I want to occur once the build is done so i'm hoping it can be generic
Copy code
val myBuildService = gradle.sharedServices.registerIfAbsent("my-build-listener", MyBuildService::class.java) { service ->
                service.parameters.onComplete = buildCompleteListener
            }
buildCompleteListener
is just a
() -> Unit
variable
d
oh right, the passing of the lambda is the problem
j
yeah, i'm hoping to keep this generic because "logger" is just one use we have
v
Try with a serializable lambda, that might maybe work