Java
A script for building and deploying custom Java libraries that are not available in public repositories like Maven Central or JCenter, including XSLT magic to manipulate the pom.xml.
Posted on 2015-01-27
A hacky one-liner shell command to dump all JMX beans from a Jolokia endpoint using curl, python -m json.tool, and other shell utilities.
Posted on 2014-10-08
A set of notes on how to migrate a SonarQube installation to a new host, including steps for installing SonarQube and PostgreSQL, and migrating the database and extensions.
Posted on 2014-01-30
A quick tip on how to enable the Gradle daemon for faster local builds by setting the GRADLE_OPTS environment variable, while leaving it disabled on build servers.
Posted on 2013-05-13
A description of a problem with the Tanuki Software Java Service Wrapper where the $HOME environment variable is not correctly set when the service is started as root but runs as a different user, and a solution provided by the Tanuki support team.
Posted on 2012-12-21
A comprehensive guide on how to generate Java sources from a WSDL file using WSDLToJava within a Gradle build, including a workaround for handling erroneous exit codes from the tool.
Posted on 2012-11-12
A guide to defining task dependencies in Gradle, showing different ways to make one task depend on another, such as using dependsOn or doFirst.
Posted on 2012-11-07
An explanation of the difference between configuration time and execution time in Gradle tasks, and how to use doLast or << to ensure code is executed at the correct time.
Posted on 2012-11-07
A simple shell function to automatically switch between different Maven settings.xml files based on the current network environment, useful for when you’’re moving between work and home.
Posted on 2012-10-18
A quick tip on how to access request parameters directly within a Grails domain class using RequestContextHolder.
Posted on 2012-06-04
A simple backup solution using a Groovy script to generate rsync commands for backing up files from multiple remote hosts.
Posted on 2010-11-17