Ratpack applications are handled by the Dist ZIP Container in the Go-based Java Buildpack. There is no separate Ratpack-specific container implementation because Ratpack applications use the standard Gradle distZip packaging format.
The Ratpack Container allows Ratpack applications, packaged distZip-style to be run.
| Detection Criteria | The lib/ratpack-core-.*.jar file exists in either the top-level directory or an immediate subdirectory of the application, AND the application has the standard bin/ and lib/ directory structure from Gradle's distZip task. |
| Tags | Dist ZIP (Ratpack is detected as a distZip application) |
| Container Used | Dist ZIP Container |
The container expects to run the application created by running gradle distZip in an application built with the Ratpack Gradle plugin. The Gradle distZip task creates a standard bin/ and lib/ directory structure, which the Dist ZIP container handles automatically.
- Build: Run
gradle distZipin your Ratpack project - Extract: Extract the generated ZIP file to get the
bin/andlib/directories - Deploy: Push the extracted contents to Cloud Foundry
- Detection: The buildpack detects the distZip structure and uses the Dist ZIP container
- Execution: The startup script in
bin/is executed automatically
Ratpack applications use the same configuration as any distZip application. See the Dist ZIP Container documentation for details.
No Ratpack-specific configuration is needed - the framework is detected automatically when ratpack-core-*.jar is found in the lib/ directory.