I'd like to tie a custom task into the default buildr release cycle. I'd like to run this code after the project has been compiled, packaged, tagged and deployed but before it increments the version number and commits that.
How would I tie into this part of the release cycle?
Unfortunately, the
release
task isn't composed of sub-tasks that you could potentially hook into and extend with your own task(s).To quote the current implementation,
As you can see, Buildr forks a separate process and essentially runs
buildr clean upload
One possibility would be toenhance
theupload
task and add your tasks as dependencies, e.g.,If this doesn't meet your needs, I'd recommend opening an enhancement request at https://issues.apache.org/jira/browse/BUILDR.