Category Archives: Gradle

Combining the power of Gradle, Flyway and JOOQ for seamless development with databases

Hi there, in this post I will show you how easily you can combine the power of Gradle, with Flyway and JOOQ. At the end you will have a recipe for a build that automatically updates the models whenever you update your database. The problem When developing applications with database access, we usually face the problem, that we […]

 

16
Kudos
Don't
move!

Read more

Creating beautiful release notes with git, gradle and markdown

During the last days I asked myself how to generated releases notes from information that are available in commit  / tag messages from git. The decisions My first approach was to create the list of changes directly from the commit messages, but this approach has multiple drawbacks. The commit messages must be written very disciplined […]

 

7
Kudos
Don't
move!

Read more

Gradle & GIT : How to map your branch to a deployment profile

Today I would like to show you how easy you can create conventions on your branching model and map these conventions to deployment / environment profiles. Where we come from Usually a project needs to have different settings for different environments (production, testing, staging, etc. pp.). Maven provides for this a nice plugin, but Gradle lacks […]

 

4
Kudos
Don't
move!

Read more

CompileOnly plugin for Gradle released

A few moments ago I released version 1 of a handy plugin for Gradle. This plugin adds compileOnly as a new configuration to a java or groovy build. If either the java nor the groovy is applied, the plugin applies automatically the java plugin. It takes care of adding this configuration to the standard source sets main and test. And it […]

 

0
Kudos
Don't
move!

Read more

Gradle: Using expand and jQuery

During the last days I started to enable a build-time setup for one of my Spring projects. One thing I set at build time was the spring.profiles.default  context parameter. For replacing wildcards during build time I added the expand()  closure to the war-task of my Gradle build script. The problem This works fine til I wanted to […]

 

1
Kudos
Don't
move!

Read more

Gradle – Multi-Modul-Project – Change module path

In Multi-Modul-Projects you have several options to define the directory structure. One variant, we also use for our projects, is the following: 

The simplest and fastest solution with Gradle is to define the following includes in the settings settings.gradle  file:

This solution has, at least, to drawbacks. One is that you need to define inter-module dependencies […]

 

0
Kudos
Don't
move!

Read more