Category Archives: Groovy

Automatic assignment of issues in #SonarQube

For those who uses SonarQube to keep an eye on code quality you probably aware there is no abilities to automatically assign issue to it’s author, except commerce plugin for that.

In order to fix mentioned little pain there is a small Groovy script that uses Sonar REST API to ensure that issues are assigned to authors according to SCM.

Script by it’s own logs into SonarQube to retrieve opened and not assigned yet issues, looks up for source code author and performs assignment. After that SonarQube just does a notifications.

Here is a script with basic usage

Just one more great cheers to @travisci

I’ve just finished preparing a demo for my upcoming talk at EPAM SEC 2013 regarding build tool Buildr.

The idea is to demonstrate usage of Buildr for building of some open source projects. I chosen next projects, written in different programming languages, CodeNarc on Groovy, JUnit on Java and spring-scala module on Scala.

It’s ok, I’ve done with switching of build to Buildr, but there is a constraint for talk – I cannot use my laptop to live demo. I was thinking about remote connection, VM preparation, and finally come up with idea to use Travis CI.

After some reading of documentation and playing with Travis CI build configuration I compete my set up, and it just wonderful how it’s easy and pretty straight forward to achieve continuous integration for open source project.

There was one trick though with using of Ruby kind of project to build Java related source code, but it was easily done with help of Bundler to install Buildr and then just execute it’s commands through

bundle exec buildr clean test

Here are my set ups:

Thanks Travis CI for great job.

#TDD with #Spock @ #XPDays 2013

Recently I’ve got an email with confirmation that my proposal with talk “TDD with Spock or how to bring Groovy to your enterprise Java project” was approved, so need to start deck preparations.

Currently looking for something to test during live parts of my talk, the idea is to not just give an information what is Spock and how to use it, but some practical examples. The big deal is to come up with something interesting but not complex to not to allow audience get into sleep. So if you have something please welcome!