I’m trying to listen the start/stop of a build. In my custom plugin’s apply() I’m doing:
project.gradle.buildStarted { }
project.gradle.buildFinished { }
The first closure is never called, the 2nd is after the build is done. Is it too late to listen to build start event? I’m trying to do something after the evaluation, but before the tasks are run (and only if they are run).