Building a Spring Boot 2 Auto-Configuration and Starter with Kotlin and Gradle

A concept that makes Spring Boot very powerful are its Starters and Auto-Configuration. It enables the automatic inclusion of dependencies and configuration or initialization based on several conditions. Recently I have been looking for a tutorial or “best practice” on how to use Gradle to build a custom starter. Since I was unable to find an example I ended up writing my own. I also added some Kotlin into the mix.
Read more

Using Jib to Build Docker Images for Spring Boot 2 Applications

If you want to create a Docker image from your Spring Boot 2 application you can use various plugins for Gradle or Maven. They all have in common that the application itself will be added as a single layer containing the full jar including all dependencies. For a typical Spring Boot 2 application this means, that for each build an image layer of at least 60MB has to be pushed to the registry.
Read more

[100 Days of Code] Day 057: June 9, 2017

Today’s Progress: Published first snapshot version of a project to OSSRH maven repository. Things I’ve learned: How to setup an account with Sonatype and publish an artifact from a gradle build Things I’ve planned for tomorrow: Integrate publishing into CD pipeline. Link(s) to work: rule-jpa

[100 Days of Code] Day 041: May 21, 2017

Today’s Progress: Unsuccessfully tried to configure IntelliJ via Gradle to include the Angular webinar generated by one subproject as a runtime artifact to the backend project. Eventually gave up. Will continue tomorrow. Things I’ve learned: — Things I’ve planned for tomorrow: Continue to setup the IntelliJ project by gradle. Link(s) to work: Unfortunately no visible progress today.