Groovy & Grails today

By jmiguel Rodriguez | jmiguel Rodriguez created a magazine on Flipboard. “Groovy & Grails today on Flipboard” is available with thousands of other magazines and all the news you care about. Download Flipboard for free and search for “jmiguel Rodriguez”.

How to use a Groovy trait to output any class as csv?

The next example shows how to use a Trait to output a CSV string for any Class which implements the trait<p>The next Spock test will pass:<p>This Trait can …

Programming

Facebook Authentication for Spring Security in Grails

• Aamir Ali<br>• 03.Sep.2015<br>• 4 comments<p>In this article we will use Spring Security Facebook Plugin for Grails to integrate our grails application with …

How to log SQL statements in a Grails 3 app

I add a message field to my domain class since I need to announce stuff.<p>Add some ProductAnnouncement messages when the application starts.<br>To do that …

Grails Programmer : How to change the server url of a Grails 3 App?

Sometimes you need to configure the exact server url (via domain name or ip address) of your Grails app. It is easy do it with a small configuration …

Programming

Groovy metaprogramming, grails and travis ci, learn how to create a gradle plugin...

Metaprograming with Groovy<p>Check out @ilopmar's talk at confoo2016 to learn about Groovy's metaprogramming capabilities (metaClass, Extension Modules, …

Programming

Grails Diary - Week 9 in 2016

This week has been busy with Grails releases! On the old 2.x maintenence track, version 2.5.4 is out, fixing a problem with create-app and a few …

JavaScript

Groovy Sorting

This post is a transcript of this video:<p>Passing false to sort will not modify the original list and return a new sorted list instead.<p>This is the …

Awesome Asciidoctor: Using Asciidoctor In Javadoc Comments

Asciidoctor is a great tool for writing technical documentation. The documentation to our Java source is what we write in Javadoc comments. Wouldn't …

Grails Goodness: Creating A Runnable Jar

Grails 3 makes it very easy to create a JAR file that is runnable with a simple $java -jar command. We must use the Grails command package or the …

Grails Goodness Notebook Updated

Grails Goodness Notebook has been updated with the latest blog posts. If you have purchased the book before you can download the latest version of …

Grails 3 Externalized Configuration | Pither.com / Simon

Grails 2.x uses it's own configuration loader that includes the ability to read extra configuration from additional, external files. This is a great …

PHP

Grails Goodness: Run Grails Application As Docker Container

Docker is a platform to build and run distributed applications. We can use Docker to package our Grails application, including all dependencies, as a …

Enable Grails application to serve resources through CDN

In a recent project we were required to move our static content files to some CDN because servers were getting millions of hits every hour and many …

DevOps

Gradle Goodness: Apply External Script With Plugin Configured Through Buildscript

Suppose we use the Gradle apply from: statement to import another Gradle build file into our build file. The external build file uses a Gradle plugin …

Grails 3.x Update

• Download<br>• MP3<br>• |<br>• Slides<br>• |<br>• Android app<p>01:30:10<p><b>Summary</b><br>Grails project lead Graeme Rocher, discusses the latest release of Grails and what is coming up during …

Events Push Plugin

This is a client-side event bus based on the portable push library Atmospherethat propagates events from the server-side event bus provided by the …

Groovy and Grails Plans Announced at SpringOne2GX

During the second technical keynote at SpringOne2GX last week Guillaume Laforge talked about plans for Groovy 2.4.x and 2.5. Perhaps the most …

Programming

grails Objects query when hasMany relationship is NULL

Not able to get the list of Objects when a hasMany attribute is null.<p>Where Email is another Class with some String Attributes<p>Now i am trying to make …

Grails Diary - Week 38 in 2015 - SpringOne2gx Edition

This last week has been filled with the SpringOne2gx conference, which this diary is heavily influenced by, but there are still a lot of news from …

Programming

Grails ( Groovy on Rails ) - New Classes and Interfaces in Grails 3.0

<b>Name</b><p><b>Type</b><p><b>Detail</b><p>AbstractFileResolvingResource<p>Abstract Class<p>Detail<p>AbstractGrailsControllerUrlMappings<p>Abstract …

Airlines

Creating & Running a Grails 3 Application

El principito, el ballet

Ayer me sucedieron dos cosas bastante inusuales. La primera (que en realidad sucedió un par de dias antes) es que Facebook me sirvió para algo. No …

Grails has a New Home at OCI.

<b>Grails has a New Home at OCI.</b><p>St. Louis, Missouri, April 9, 2015 – OCI (Object Computing, Inc.) today announced that Graeme Rocher, Grails Co-Founder …

St. Louis

Grails Diary - Week 11 in 2015

This week, the first release candidate for Grails 3.0 became available: https://github.com/grails/grails-core/releases/tag/v3.0.0.RC1. The release is …

CRM

Building Spring Boot cli apps with Docker

The Spring Boot CLI is quite useful when building small groovy scripts.I recently created a small dockerfile based on Java 8 and ubuntu that makes it …

DevOps

Groovy Document Builder - MPL Edition

<b>With the latest release of the Groovy Document Builder, the entire project (including the PDF builder) are now available under the MPL2 license.</b> I've …

Web Design

Groovy Goodness: Getting the Indices of a Collection

Since Groovy 2.4 we can use the indices property on a Collection to get the indices of the elements in the collection. We get an IntRange object as a …

Spocklight: Capture and Assert System Output

Spock supports JUnit rules out of the box. We simply add a rule with the @Rule annotation to our Spock specification and the rule can be used just …