Grails SonarQube in a box

I’ve been working with a number of initiatives aimed for code quality in Grails projects. I’ve found some great plugins like CodeNarc, GMetrics, … but before we talk about them and how to run in Grails projects I would like go through on how to expose those quality metrics in a fancy dashboard. Here comes […]

Spock test framework, live long and prosper.

Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful and highly expressive specification language. Thanks to its JUnit runner, Spock is compatible with most IDEs, build tools, and continuous integration servers. Spock is inspired from JUnit, jMock, RSpec, Groovy, Scala, Vulcans, […]

Groovy functional sugar: Trampoline

Based on Gr8-Docs, recursive algorithms are often restricted by the maximum stack height (physical limit). If you call a method that recursively calls itself too deep, you will eventually receive a StackOverflowException. An approach that helps in those situations is using Closure and trampoline capability. The trampoline() method on a closure is wrapped in TrampolineClosure […]