Have you ever been to an Internet Cafe and connected to the free WIFI? Have you found that after five minutes of activity the connection has been dropped and...
0 replies - 6660 views - 11/02/12 by Peter Pilgrim in Articles
We can exclude transitive dependencies easily from specific
configurations. To exclude them from all configurations we can use
Groovy's spread-dot operator...
0 replies - 2428 views - 10/31/12 by Hubert Klein Ikkink in Articles
With Gradle we can execute Java applications using the JavaExec task or the javaexec()
method. If we want to run Java code from an external dependency we...
0 replies - 3386 views - 10/31/12 by Hubert Klein Ikkink in Articles
When I wrote this write-up
on evaluating an infix expression having multiple digits, I was lazy to
do it for expressions with parentheses. So, here it...
0 replies - 3169 views - 10/25/12 by Arun Manivannan in Articles
Guillaume Laforge's (SpringSource/VMware/@glaforge) "What's New in
Groovy 2.0" presentation was in the same conference room (Hilton...
0 replies - 2138 views - 10/22/12 by Dustin Marx in Articles
We can introduce Groovy into our Java projects at grassroots
level. Even if we aren't allowed to run the Groovy compiler we can use
other ways to...
1 replies - 5775 views - 10/22/12 by Hubert Klein Ikkink in Articles
Since Groovy 1.8.7 we can create a list and use the withDefault()
method to define a default value for elements that are not yet in the
list. We use a...
0 replies - 2556 views - 10/17/12 by Hubert Klein Ikkink in Articles
We need to understand what happens to code over time and why, and
what a healthy, long-lived code base looks like. What architectural
decisions have the...
1 replies - 10684 views - 10/15/12 by Jim Bird in Articles
Groovy closures are powerful. A closure can be passed to methods as
argument or defined as a variable. We can even return closures from
methods or other...
0 replies - 2011 views - 10/13/12 by Hubert Klein Ikkink in Articles
Since Groovy 2 we can use a subset of the Project Coin
features from Java 7. But we don't have to run Java 7 to use them in
Groovy code. We can use the new...
0 replies - 2257 views - 10/12/12 by Hubert Klein Ikkink in Articles
In Groovy we can use the drop() and take() methods to get elements from a collection or String object. Since Groovy 1.8.7 we also can use the dropWhile() and...
0 replies - 2248 views - 10/10/12 by Hubert Klein Ikkink in Articles
In Groovy we can invoke an implicit call() method on a Groovy object. We can leave out the call method name and just use (). We can use meta programming to add...
0 replies - 2310 views - 10/07/12 by Hubert Klein Ikkink in Articles
Since Groovy 1.8.3 we can use the implies() method on Boolean types. The implies() method implements a logical implication. This means that if we have two...
0 replies - 2205 views - 10/05/12 by Hubert Klein Ikkink in Articles
With the Gradle IDEA plugin we can generate JetBrains IntelliJ IDEA
project files. The plugin uses defaults from our project to generate the
files. If we...
0 replies - 2756 views - 09/30/12 by Hubert Klein Ikkink in Articles
One of the great things of Gradle is that the build scripts are code.
We can use all the features of the Groovy language, we can refactor our
0 replies - 2902 views - 09/26/12 by Hubert Klein Ikkink in Articles