Author: Marcelus Trojahn

Spring-Boot / Groovy / Gradle “Hello World” application

The complete code for this project can be found here: https://github.com/mtrojahn/spring-boot-groovy-console-app Last weekend I was playing around with Gradle which I have never used before. The result is this very basic spring-boot project just to illustrate how I did it. Gradle isn’t that difficult but I had a few problems until I learn about the spring-boot-gradle-plugin and such. This is the build.gradle:

As you can see it’s fairly simple and way more organized than Maven in my opinion. The spring-boot-gradle-plugin is the key here. It provides all the version information for the dependencies and also adds a Gradle task...

Spring-boot / Maven simple “Hello World” application

The complete code for this application: https://github.com/mtrojahn/spring-boot-console-app In this example I’ll try to show how to create a simple console application to print out the traditional “Hello World” message using spring-boot on a Maven project. I’ll try to keep it as simple as possible for now and I’ll most likely use this code as base for new posts. Let’s start with the pom.xml file.

This is a simple console application so, for now, we only need “spring-boot-starter” as dependency. You can also notice that I included a few plugins. The most important for now is the spring-boot-maven-plugin which will...

%d bloggers like this: