GrailsTechnology

Application configurations setting in Grails 3

Grails has done lot of changes with its latest release in Grails 3, using configuration is one of them. Now we can write application configurations in application.yml and application.groovy as well and to read these property we can need to write the following code. [code] class ExampleController { GrailsApplication grailsApplication def index() { render "Old […]

Automation TestingGrails

Automatically run test suites and coverage reports for open-source grails projects using Travis CI and coveralls

Automated testing helps a lot in maintaining the quality of code. But setting up CI environments like Jenkins may seem like a hassle if you are working on small projects. Luckily for us there is a simple solution, at least for open-source projects hosted(or mirrorred) on github. Travis CI is a service freely offered to make builds […]

Grails

Day 2 @GR8Conf EU 2015

Day 2 at GR8Conf EU June 2015 Copenhagen, Denmark continued to beintriguing and fun filled. The Day started with the keynote from Jeff Scott Brown on Grails and its future plan. He shed light on Grails 3.0 features and its releases plans. He also asked for contribution to migrating plugins from Grails 2.x to Grails 3.0. […]

Grails

Day 1 @Gr8Conf EU 2015

The day one at GR8Conf EU June 2015 Copenhagen, Denmark was really awesome. It started at the IT-University with a jam packed hall full of eager registrants with a welcome note from Søren with a history of how the Gr8 conf started. Then, Gulliame went through the state of affairs around Groovy & Grails and addressed the […]

Grails

Traits Provided by Grails 3

The Core API’s in Grails 3 are based on Groovy Traits. Following are the few of the examples which shows the way you can use these traits in Groovy classes. ResponseRenderer With the help of ResponseRenderer traits we can provide render method to a Groovy class in the following way : [java] import grails.artefact.controller.support.ResponseRenderer class […]

pulkit
pulkit
Read

Grails

Run Gradle tasks from Grails 3 custom scripts

In Grails 3 each script extends from GroovyScriptCommand. One of the property which GroovyScriptCommand provides is “gradle”. With the help of this property you can invoke gradle tasks. When you write : [java] grails create-scipt demo [/java] A script file will be generated in src/main/scripts folder with the name demo.groovy Now let us assume that […]

pulkit
pulkit
Read

Grails

Change default config file in grails

I was going through Grails documentation and found one interesting fact that I would like to share. As we already know that grails configuration can be externalised using [code] grails.config.locations = [‘path to external config file’] [/code] Any config defined in this external config will override the value defined in Config.groovy. It might be possible that we want […]

Neetu
Neetu
Read

AWSGrails

AWS Elastic Beanstalk ( Grails Application )

Ever wondered what to do if you have to make a very quick deployment of an application on the AWS Cloud ? You would launch servers, make an infrastructure and then Install applications which is somewhat a tedious process. How would it sound if the deployments are made in seconds ? Here is an AWS […]

GrailsTechnology

Let’s upgrade existing plugins to Grails3

Now that Grails 3, the most anticipated release of Grails is out, which comes with lot of new features like: Gradle Build System. Notion of application profiles. Redesigned API based on Traits. New shell & Code generation API. Build in support for Spock/Geb functional tests. Gradle Test Running etc. The Grails core team always maintained […]

Services