Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 989 Bytes

example-groovy.md

File metadata and controls

21 lines (17 loc) · 989 Bytes

Groovy Examples

The Java Buildpack can run Groovy applications written with the Ratpack framework and from raw .groovy files (no pre-compilation).

Raw Groovy

The following example shows how deploy the sample application located in the Java Test Applications.

$ cf push groovy-application -b https://github.com/cloudfoundry/java-buildpack.git
-----> Downloading Open Jdk JRE 1.7.0_51 from https://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
       Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.3s)
-----> Downloading Spring Auto Reconfiguration 0.8.7 from https://.../auto-reconfiguration/auto-reconfiguration-0.8.7.jar (0.0s)
-----> Downloading Groovy 2.2.1 from https://.../groovy/groovy-2.2.1.zip (0.0s)
       Expanding Groovy to .java-buildpack/groovy (0.4s)
-----> Uploading droplet (82M)

$ curl ...cfapps.io
ok