Gradle

Java exPress - introduction to Gradle

I'm happy to announce, that my article devoted to Gradle was published in the latest Java exPress issue. :)

This article will introduce you to Gradle (a powerful and smart build system). Gradle is huge (and still growing), so some concepts were omitted (on purpose), but it should serve you right as a food for thought on what the strong points of Gradle are, and how much easier it can be to perform various build related tasks.

 

Quick Build with Gradle (BSBM Tools)

Today, I needed to have a JAR of BSBM benchmark tools. Surprisingly, when I downloaded the bundled zip from SourceForge, there was neither JAR nor build file inside (no build.xml, no pom.xml, nothing) - or maybe I'm blind.
Well, Gradle to the rescue. :)

 

Better looking test reports with ReportNG

TestNG reports can be customized, so any style modification is possible. Did you know there is this nice ReportNG project, that makes TestNG produce very good looking reports without much trouble ?

 

Custom tests reports with TestNG Listeners, Apache Velocity and a bit of CSS

In your opinion, the original reports of TestNG are (pick one or more options):

  1. showing too much information,
  2. showing not enough information,
  3. not showing what you want to show,
  4. require too many clicks to find out what has gone wrong,
  5. not very pretty,

Because of this, you finally decide to create your own reports. Good, then read this post, and you will learn about one possible way of achieving this.

 

Ant, Gradle and Maven - comparison - install script

This is a part of "Ant/Gradle/Maven comparison" series.

A common task during development is the creation of an installable version of software. The one I mention in this post is a real one - this is something I've been working working with since few months. It does few things related to Fuse ESB:

  • unpacks Fuse sources,
  • updates some config files,
  • retrieves few JARs from Maven repository and put them into deploy folder,
  • does some more file-related stuff - creates directories and copies files,
  • produces ready-to-unpack-and-use file: tar.gz (for Linux) and zip (for Windows).

I started to write this with Ant/Maven, and then switched to Gradle. I'll present few code snippets here, that should give you a decent understanding of difference that Gradle makes. Please judge for yourself if the switch from Ant/Maven to Gradle was worth the effort.

 

Cooking with Gradle

So I became a cook... It is rather surprising, because my kitchen-fu is limited to boiling water. :) But well, life is unpredictable, you know - and so now I'm busy preparing recipes for Gradle users. In other words, I'm taking care of the Gradle Cookbook.

 

Ant, Gradle and Maven - comparison - checking build prerequisites

So you decided to check some build prerequisites before doing any real job. You want to check if proper Java version is installed, if some configuration files are available etc.

I'll show you how you can do this using Ant, Gradle and Maven.

 

Maven ? Ant ? ...or Gradle ?!

Are you using Maven ? Or maybe you hate Maven and you still use Ant ? Or maybe you feel that both are not enough and you are looking for something else. Than look no more, cause Gradle offers what you need.

 

Gradle 0.6 supports TestNG

Gradle 0.6 was released today ! Among other stuff Gradle now supports execution of TestNG tests.

 

GeeCON 2009 conference, Cracow, Poland

The GeeCON 2009 (http://geecon.org/) conference is over :( This is a sad news, because this event was GREAT !

It took place on 7-8th of May in my home town of Cracow, Poland. I enjoyed every bit of it - from interesting sessions to great catering.

GeeCON 2009

This conference was special to me, because I was one of the speakers there with "Automation of functional tests" session. :)

 
Please comment using
 
Syndicate content