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.