This is a Heroku buildpack for Gradle apps.
It has been updated to support latest version of Gradle.
Example usage :
$ ls
build.gradle
For a new app :
$ heroku create --buildpack https://github.com/joow/heroku-buildpack-gradle.git
or for an existing app :
$ heroku config:set BUILDPACK_URL=https://github.com/joow/heroku-buildpack-gradle
$ git push heroku master
-----> Fetching custom git buildpack... done
-----> Gradle app detected
-----> Building Gradle app...
It is worth mentioning that your gradle build should :
-
Use the application plugin :
apply plugin: 'application'
-
Define the main class name and the application name (used by the application plugin to run your app) :
mainClassName = 'my.main.class.Name'
applicationName = 'MyApplicationName'
-
Define a new task called "stage" used by the buildpack to compile your app :
task stage(dependsOn: ['clean', 'installApp'])
See LICENSE file.