Slackbot
08/04/2023, 3:57 AMVampire
08/04/2023, 6:47 AMtasks.configureEach { usesService(foo) } and make sure the service is created somewhere to achieve the same. The build finish action is done in close() of AutoCloseable that you also implement. This is called somewhere between the service not being used anymore and the build being finished.Conan Bee
08/04/2023, 6:50 AMVampire
08/04/2023, 6:51 AMVampire
08/04/2023, 6:51 AMConan Bee
08/04/2023, 6:53 AMConan Bee
08/04/2023, 6:59 AMVampire
08/04/2023, 7:00 AMVampire
08/04/2023, 7:01 AMclose(), not in onFinish. Latter can be empty, it is just to ensure it is "used" until all tasks finishedConan Bee
08/04/2023, 7:05 AMclose(). When implements OCL, the build service will be used in all tasks right? Please correct me if I am still wrong.Conan Bee
08/04/2023, 7:06 AMVampire
08/04/2023, 7:10 AMAutoCloseable, yesConan Bee
08/04/2023, 7:11 AMConan Bee
08/04/2023, 7:16 AMclose() will not be executed right?Conan Bee
08/04/2023, 7:16 AMConan Bee
08/04/2023, 7:18 AMVampire
08/04/2023, 7:25 AMConan Bee
08/04/2023, 7:27 AMConan Bee
08/04/2023, 7:36 AMclose() does not have the relevant buildResult parameter. Is it the only way to use dataflow action?Conan Bee
08/04/2023, 7:50 AMVampire
08/04/2023, 8:31 AMonFinish and then evaluate in close.Conan Bee
08/04/2023, 8:32 AMonFinish only handle failure tasks?Vampire
08/04/2023, 8:33 AMConan Bee
08/04/2023, 8:34 AMonFinish still have no parameters to indicate the build statusMikhail Lopatkin
08/04/2023, 8:44 AMAlthough I need to upgrade to gradle 8, it looks like this is a dead cycle.A bit derailing, but why do you see it like that? Do you want to get rid of
buildFinished before migrating to 8.1+? If 8.x is the end goal, I still recommend adopting FlowAction as soon as it is available and not bother with build services for that, as FlowAction is a better replacement (e.g. it can see the failed configuration phase if registered before the failure).
As for Incubating - it is unlikely to change much (except for the moment when the parameterless action executes).Conan Bee
08/04/2023, 8:53 AMbuildFinished before migrating to 8.1+?
A: Currently the answer is yes. But just as you said, the end goal is 8.x. But upgrading to 8.x has a lot of work to do because we have many external dependent plugins that need to be upgraded. @Mikhail LopatkinConan Bee
08/04/2023, 8:53 AMbuildFinished before 8.xVampire
08/04/2023, 9:15 AMso what do you mean?Sure it has. You need to check the type of the argument. You will get a subclass likestill have no parameters to indicate the build statusonFinish
TaskFailedEvent for exampleConan Bee
08/04/2023, 9:17 AM