This message was deleted.
# community-support
s
This message was deleted.
e
https://docs.gradle.org/current/userguide/build_services.html
A build service implementation can also optionally implement
AutoCloseable
, in which case Gradle will call the build service instance’s
close()
method when it discards the service instance. This happens some time between completion of the last task that uses the build service and the end of the build.
z
perfect
well, almost perfect. I need the exception to know if the build is cancelled, lol
e
you have access to every failure as it happens,
Copy code
private val allFailures = mutableListOf<Failure>()
override fun onFinish(event: FinishEvent) {
    val result = event.result
    if (result is FailureResult) allFailures.addAll(result.failures)
👍 2