Thursday, September 16, 2010

Customizing Eclipse files with Gradle

Currently I'm employed at XebiaLabs where we're building our Deployit product. In the team, we recently switched from Maven2 to Gradle to build Deployit, so that we could do some funky stuff with integration testing our flash UI. However some of my team-members are now missing certain magic features from m2eclipse...

Tuesday, September 14, 2010

Gradle and IntelliJ (revisited)

In one of my previous posts, I described a way of importing Gradle projects with IntelliJ IDEA. However with the release of Gradle 0.9 rc-1, there is a new way of doing this!

Monday, June 7, 2010

Timing Seam Injection

One of the main concepts in Seam is the Bijection of Components. Seam can inject components into eachother and can outject them for use in for instance XHTML pages. However, bijection takes time, how much time is mainly dependent on how much dependencies need to be loaded. However, normally you cannot easily measure the overhead time of bijection.

Friday, May 21, 2010

Revised Seam Application Scoped Repositories

In yesterdays blog I wrote about repositories in a Seam application that have application scope. In this blog I also presented a possible solution. In this blog I wish to present a better solution that also makes use of the Seam Managed Persistence Contexts.

Thursday, May 20, 2010

Seam Application Scoped Repositories

Sometimes bugs are so obvious that they hit your blind spot. This happened to me last day, while working on a Seam project at one of our customers. I was writing JMeter tests as part of the QA team to stress test the application, and I got some weird exceptions...

Wednesday, May 12, 2010

The Gradle Wrapper

Who hasn't come across build system version incompatibilities? You build your system with Maven 2.0.X and one of your colleagues with 2.0.Y, and one of your builds break. Gradle provides a way to circumvent this, the Gradle Wrapper.

Thursday, April 22, 2010

Using the Google AppEngine Gradle Plugin

In my previous blog post, I described the Google AppEngine Plugin for Gradle. In this blog I will show you how you can use it to deploy your own applications to Google AppEngine.

Monday, April 19, 2010

AppEngine Gradle Plugin

Last Friday I worked on a pet project together with some colleagues. We're building the project with Gradle and we wanted to deploy it to Google AppEngine. Now Gradle has support for plugins, so I decided I'd build a plugin for Google AppEngine....

Wednesday, March 31, 2010

Gradle and IntelliJ IDEA

Now that I'm playing with Gradle a bit, I needed to have a way to have it play nice with my current IDE of choice, IntelliJ IDEA. At the moment IntelliJ does not support a project built by Gradle, as it does one that is built with Maven2 using a pom.xml file. But alas, using some tricks it is pretty simple.

Thursday, March 25, 2010

Google Code Jam 2010 Announced

Will it be a new form of Alien communications, will we need to devise a new search algorithm, or something else completely...? It's that time of year again already! Google Code Jam 2010 has been announced.

Wednesday, March 17, 2010

Custom Repository Layout in Gradle

For one of the projects I work on with some colleagues, we have a number of jar files, which are not part of any Maven(-ized) repository. We decided to upload these jar files to the downloads page of github, so that we have a url which we can refer to. Using some customization in our Gradle build file, we managed to download these jars as though they were hosted on a Maven(-ized) repository.

usePlugin 'java'

repositories {
mavenCentral()
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = "GitHub"
addArtifactPattern 'http://github.com/asikkema/adoptimizer/downloads/[organization]-[module]-[revision].[ext]'
}
}

dependencies {
compile "gdata:client:1.0@jar"
compile "gdata:analytics:2.1@jar"
compile "gdata:analytics-meta:2.1@jar"
}


There are other options, but this was the most terse we came up with.

Build tools introduction

Ever since the advent of “make” and its many incarnations, developers have been in search for the ultimate build tool. In the past years we have seen an ever increasing amount of build tools being developed for many different use-cases. In the coming blogs, I will take you through some of the niceties of three new build tools: Maven3, Gradle and Buildr.