-
Groovy
Gradle Goodness: Using CopySpec with Tasks
To define a Copy task we specify the files we want to copy and to which directory. This definition is…
Read More » -
Groovy
Gradle Goodness: Using and Working with Gradle Version
To get the current Gradle version we can use the gradleVersion property of the Gradle object. This returns a string…
Read More » -
Groovy
Groovy Goodness: Closure as a Class
When we write Groovy code there is a big chance we also write some closures. If we are working with…
Read More » -
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 » -
Core Java
Gradle Goodness: Adding Dependencies Only for Packaging to War
My colleague, Tom Wetjens, wrote a blog post Package-only dependencies in Maven. He showed a Maven solution when we want…
Read More » -
Core Java
Gradle Goodness: Getting More Dependency Insight
In most of our projects we have dependencies on other code, like libraries or other projects. Gradle has a nice…
Read More » -
Groovy
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 » -
Groovy
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
Groovy Goodness: Define Compilation Customizers With Builder Syntax
Since Groovy 2.1 we can use a nice builder syntax to define customizers for a CompileConfiguration instance. We must use…
Read More »