swisstech.net

tech and photography

Gradle

Reuse repository definitions in gradle

A short Groovy snippet that shows how to reuse repository definitions from the buildscript block in the main repositories block of a Gradle build script.

Posted on 2014-10-16

To gradle daemon or not to gradle daemon?

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

Using WSDLToJava with Gradle

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

Anatomy of a Gradle Task: Execution Time

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