No description, website, or topics provided.
Clone or download
Pull request Compare This branch is 19 commits ahead, 123 commits behind heroku:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
conf
test
README.md

README.md

Buildpack for Gradle

This is a buildpack for applications being built with Gradle. It supports Gradle wrappers and custom build tasks.

Usage

During build process your application will be detected as a Gradle one based on presence of build.gradle or settings.gradle file.

$ cctrlapp APP_NAME create java
$ cctrlapp APP_NAME/DEP_NAME push
-----> Receiving push
-----> Installing OpenJDK 1.7(openjdk7.jdk7u60-b03.tar.gz)... done
-----> Installing gradle-1.11..... done
-----> Building Gradle app...
       WARNING: The Gradle buildpack is currently in Beta.
-----> executing gradle stage
...
-----> Building image
-----> Uploading image (44.3 MB)

Gradle wrappers

In order to use custom Gradle wrapper add it to your application root directory with executable permissions.

Custom tasks

By default buildpack executes stage gradle task. In order to use different and multiple tasks list them in .buildpack/tasks file in the root directory of your application:

$ mkdir .buildpack
$ echo "clean build stage" > .buildpack/tasks

Add file to repository and push again:

$ cctrlapp APP_NAME/DEP_NAME push
-----> Receiving push
-----> Installing OpenJDK 1.7(openjdk7.jdk7u60-b03.tar.gz)... done
-----> Building Gradle app...
       WARNING: The Gradle buildpack is currently in Beta.
-----> executing gradle clean build stage
...
-----> Building image
-----> Uploading image (44.3 MB)

Hacking

If any further modifications are required, fork this buildpack, apply required modifications and create your application with custom type specifying your buildpack url:

$ $ cctrlapp APP_NAME create custom --buildpack BUILDPACK_URL