improvement to publish script [skip ci]
improvement to publish script [skip ci]

heroku/heroku-buildpack-gradle,sebradloff/acit-heroku-gradle-buildpack,tchen10/heroku-buildpack-gradle-ansible,bhagwat/heroku-buildpack-gradle,heroku/heroku-buildpack-gradle