It doesn’t make sense to have your build tool call another build tool to actually perform the build. In that case, why I would not just use Gradle directly?
build pre:
! echo 'pre script'
build proj:
! gradle hello
Plus, you might want to run some python scripts or run some other shell commands during or after you have built your gradle project. build pre:
! echo 'pre script'
build proj: pre
! gradle hello
This will ensure that 'pre' scripts are run before main 'proj' script!It can do anything you want if you can provide it with proper shell commands and define targets. This can not only be used for tasks but also for physical building targets that can be built on the machine.
I believe that the project you linked here is itself also a build system and not just a task runner. But again, it uses yaml, which might not be best while defining custom things related to a build system