#Gradle template with #code quality tools for #Java 8

Today was faced with strange bug during upgrade of Gradle template developed by Netflix to support recently released Gradle 2.0. The bug was connected with unable to run FindBugs, by the way this tool also released a support for Java 8 recently.

Fortunately step-by step it was clear that this is not due to Gradle 2.0 or updated FindBugs, it’s a miracle but strange hanging behaviour was related to added JCenter Maven repository before Maven Central repository, when this setting was reversed everything started to work here is a link to commit https://github.com/webdizz/gradle-template/commit/2b93fa80f9b1bac3c27f339d0cf3d33ab8e9873e.

#JEEConf Kyiv 2014 – Follow up

Recent 2 days were just amazing, if you ask me why here is an answer – I was at JEEConf in Kyiv.

It was quite good conference with lot of option to get some fresh ideas in software development with Java. Among speakers from Ukraine there were a lot from other countries like UK, USA, Switzerland, Germany, Egypt, Greece, Sweden, Poland, Netherlands and Russia etc.

I need to mention that organization was well done, there were even lunch for attendees.

As for talks I really liked here they are:

I was among speakers with topic regarding necessity to use metrics in your application and usage of Metrics framework developed by Coda Hale and here is slides to this talk Metrics by coda hale : to know your app’ health

So to recap, thanks to organizers for great conference and ability to take part in it.

Looking forward to be there again next year…

And here is embedded slides:

 

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 https://github.com/webdizz/embezzler.

#Monitoring tool for your #code in production with #Metrics

There is quite interesting tool to  be used for monitoring of deployed Java application – Metrics.

Metrics provides nice and clean API to produce operation metrics in different aspects like GaugesCountersMetersHistogramsTimers and even Health Checks. As for monitoring and reporting there is a support of JMX and HTTP, also Metrics has integrations with SLF4JGanglia and Graphite.

Also there are some additional extension to integrate with such frameworks like:

For full list please take a look at this page.

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.