Slackbot
09/16/2022, 6:14 PMephemient
09/16/2022, 6:16 PMA build service implementation can also optionally implement, in which case Gradle will call the build service instance’sAutoCloseable
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.close()
Zak Taccardi
09/16/2022, 6:16 PMZak Taccardi
09/16/2022, 6:23 PMephemient
09/16/2022, 6:28 PMprivate val allFailures = mutableListOf<Failure>()
override fun onFinish(event: FinishEvent) {
val result = event.result
if (result is FailureResult) allFailures.addAll(result.failures)