Skip to content

cloudControl/buildpack-gradle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%