Andrey Hihlovskiy

Professional blog on groovy, gradle, Java, Javascript and other stuff.

Monthly Archives: February 2014

Deploying Spring Boot Groovy scripts as a Jar file in Cloud Foundry

Tomás Lin's Programming Brain Dump

This post is a step by step guide on deploying a Spring Boot application on Cloud Foundry using the spring jar feature introduced in 1.0.0.RC2.

If you read the Cloud Foundry documentation, they would claim that the proper way to deploy Spring Boot Groovy scripts is via:

spring grab *.groovy
cf push

Unfortunately, this approach is almost as effective as Sex Panther Cologne.

It fails badly when you try to include other starter packs, such as the websocket starter pack.

Using the jar approach outlined here allows us to overcome the errors that you might encounter in Cloud Foundry otherwise.

View original post 354 more words

Advertisements

Gretty version 0.0.12 is out!

Gretty is a feature-rich gradle plugin for running web-applications under jetty.

New in version 0.0.12: support of integration tests.

Full sources, documentation and examples: https://github.com/akhikhl/gretty

Gretty 0.0.12 is also available on maven central under group “org.akhikhl.gretty”.

Gretty version 0.0.11 is out!

Gretty is a feature-rich gradle plugin for running web-applications under jetty.

New in version 0.0.11: now it’s possible to specify logback configuration file (.groovy or .xml) via plugin extension property “logbackConfigFile”.

Full sources, documentation and examples: https://github.com/akhikhl/gretty

Gretty 0.0.11 is also available on maven central under group “org.akhikhl.gretty”.

AngularJS + JSTree = awesome!

I created an example of ajax-driven jstree wrapped as angularjs directive, backed by ratpack:
https://github.com/akhikhl/angularjs-jstree
Enjoy 🙂

Serving jokes locally with Ratpack and MongoDB

Very entertaining way to learn Ratpack and MongoDB!

Stuff I've learned recently...

In twoprevious posts, I discussed applications I created that were simple client-side front ends for the Internet Chuck Norris Database (ICNDB), located at http://icndb.com. This post gives the details of the local server I created, using Groovy, MongoDB, and the cool Ratpack project (note new URL). The earlier posts contained parts of that app, but since then I’ve updated it to the latest version of Ratpack, revised the gradle build file accordingly, added a couple of integration tests, and checked the whole thing into GitHub.

I often use ICNDB in my Groovy presentations, because it’s easy to access, returns a simple JSON object, and is rather amusing.

(This, by the way, is in direct contrast to Mr. Norris himself, whose politics are somewhat to the right of Attila the Hun. Still, I only care about the jokes themselves, which are pretty funny.)

Accessing the site is…

View original post 1,376 more words