Groovy
-
Gradle Goodness: Running Groovy Scripts as Application
In a previous post we learned how to run a Java application in a Gradle project. The Java source file…
Read More » -
Property-based testing with Spock
Property based testing is an alternative approach to testing, complementing example based testing. The latter is what we’ve been doing…
Read More » -
Grails Goodness: Using Converter Named Configurations with Default Renderers
Sometimes we want to support in our RESTful API a different level of detail in the output for the same…
Read More » -
Java 8 Lambdas vs Groovy Closures Compactness: Grouping And Summing
Java 8 is featuring lambdas, which are similar to a construction Groovy has already for some time: closures. In Groovy…
Read More » -
MongoDB and Grails
So recently, I had a requirement to store unstructured JSON data that was coming back from a web service. The…
Read More » -
Grails tip: refactoring your URLs
On the current project I am working we use a lot of integration tests. For you non-Grails users out there,…
Read More » -
Grails 2.4 Released: Installing Groovy-Eclipse Compiler 2.3 in Eclipse/GGTS
This month has been interesting: on the 7th Groovy 2.3.0 has been released, followed up by Grails 2.4 a few…
Read More » -
Groovy Goodness: Use Builder AST Transformation for Fluent API
Since Groovy 2.3 we can easily create a fluent API for our classes with the @Builder AST transformation. We can…
Read More » -
Groovy Closures: this, owner, delegate let’s make a DSL
Groovy closures are super cool. To fully understand them, I think it’s really important to understand the meaning of this,…
Read More »