Archive for the ‘gradle’ Category

Enabling JMX in Gradle’s jetty Plugin

It’s another day, which means another gradle tip. I have been experimenting with JMX lately and using MBeanExporter to export spring beans so that I can interact with them over JMX (specifically, stopping and starting rabbitMQ consumers). I can get this working on any container easily enough but I really wanted to get it working [...]

My Current Java Workflow

I thought I’d share the current workflow I have been using at work and why I think it’s been a pretty decent scheme so far. For this post I’m only covering jar deployment but I could see it easily working the same for gems or node.js npm packages. Just for a bit of background, here’s [...]

Setting Gradle Cache to a Common Location

I’ll just skip straight to how to accomplish this. export GRADLE_USER_HOME=/usr/local/share/gradle The windows variant is just doing something similar. Define a environment property named GRADLE_USER_HOME and point it to something like c:\gradle-user-home or something. Set this up to be exported for all users and they’ll now be able to re-use artifacts that have already been [...]

Using Geb+EasyB With Gradle

Gradle has been my new pet interest lately… it gives me the out of the box power of maven and an awesome amount of control over my builds that I have only seen in rake and capistrano. Recently I’ve been day dreaming of an idea: a multi-module project setup containing a web application and a [...]

Running EasyB Specs From Gradle

Although the cookbook includes an example of using the easyb ant task to run specs and produce reports, I thought I’d try my hand at writing a task to manually run easyb specifications from the commandline. Here’s the result: task spec dir.eachFileMatch(~/.*\.specification/){spec-> arg(value:spec.absolutePath) } } } } } Now I can run “gradle spec” from [...]

Using Gradle For Your “Enterprise Java Project”

Yesterday evening I fooled around with gradle quite a bit, finally sitting down and taking some time to learn it as I’ve been hearing lots of good things about it. And man, I like it! I decided to use it to build the kind of project that enterprise architects go ga-ga over: a multi module [...]

Subscribe to RSS Feed Follow me on Twitter!