Tag Archives: gradle

Gradle incremental tasks and builds

One of the things that makes a build efficient is when it can run incrementally. i.e. If you have already run one build, and you change things and run another, the second build should only have to rerun some tasks … Continue reading

Posted in Gradle, Java | Tagged | Leave a comment

Gradle Release Plugin

Gradle has a release plugin that mimics the Maven release plugin behaviour. i.e. you specify a snapshot version in your build and the plugin can update the version to a released version, commit and push that. The plugin is not … Continue reading

Posted in Gradle, Java | Tagged , | Leave a comment

Dependencies and Configurations in Gradle

What is a Gradle configuration? In Maven dependencies can be assigned to a given scope: compile – available on all classpaths and propagated to dependent projects provided – will be provided by your container runtime test Gradle has a much … Continue reading

Posted in Gradle, Java | Tagged , | Leave a comment

Using test fixtures in Gradle and Maven

In Maven if you want to reuse text fixtures from one module in another module, you use the jar plugin and build a test jar. You have to specify what classes and other resources to include. Gradle has a dedicated … Continue reading

Posted in Gradle, Java | Tagged , | Leave a comment

Code coverage with Gradle and Jacoco

Recently I’ve been trying to configure code coverage with Gradle and Jacoco. I started on the official docs page here: https://docs.gradle.org/current/userguide/jacoco_plugin.html However, this page wasn’t that helpful. One key requirement I have is that I want to be able to … Continue reading

Posted in Gradle | Tagged | Leave a comment