Published at 07.11.2014
Meet James – Jim – Northrop. One of our most active users – he recently wrote a tutorial on how to use the Gradle Cloud Foundry plugin to target anynines – he has now experimented with deploying a Groovy application to anynines.
If emoticons are really your thing you should definitely check out his post (we love him for this), else: continue to scroll down for a summarized version.
We’ll be using Caelyf, a lightweight Groovy toolkit for Cloud Foundry. Groovy in turn is an ‘agile and dynamic language’ for the Java Virtual Machine. Typically, we manage applications using tools on our local client machines. This is done in either of two ways.
Table of Contents
You can install and manually use a deployment tool. We suggest using the Cloud Foundry CLI for this. It has a lot of flexibility to help you manage your Caelyf applications. Cloud Foundry is a professional tool and can take a bit of effort to get used to it, but Oliver, one of our developers, has written some great stuff on how to get started (like this and this).
Build tools are more automatic. Ant, or an IDE tool like Netbeans or Eclipse can be very helpful, but we’ll be using Gradle (1.12). Gradle can extend it’s feature set via plug-ins, and it has a Cloud Foundry plugin we can use to quickly deploy an app. With this plugin, you don’t need to install the Cloud Foundry CLI.
If you care to try out this short-cut, you’ll need a few things.
We’ve made a sample application, and you can download its source code. As such it’s almost ready to deploy. Just needs your credentials and app name, really. Looking into the sample code and pieces, you’ll be able to get the hang of it all quicker.
Check out the full series here: a9s Adventures