Make sure you have Java installed. Also, install the Heroku Toolbelt.
$ git clone https://github.com/heroku/gradle-getting-started.git
$ cd gradle-getting-started
$ ./gradlew stage
$ heroku local web
Your app should now be running on localhost:5000.
$ git push heroku master