Tagged: gradle

Integrating ZK Framework on a Spring Boot application

The complete project can be found here: https://github.com/mtrojahn/spring-boot-groovy-zk As you already know if you read my previous posts, I kinda decided to shift my focus to Groovy and I’m learning as I go. Feel free to correct me any time on the comments if you feel I’m doing something wrong or not optimal. In this post I’ll show how to integrate the ZK Framework on a Spring-Boot project just to output a “Hello World” message coming from an autowired bean just so we can check if everything is correctly wired. As usual, let’s start with the build.gradle file:

Ok,...

Spring-Boot / Groovy / MVC “Hello World” example

The complete project can be found here: https://github.com/mtrojahn/spring-boot-groovy-mvc-simple This is yet another very basic example. This time I’ll show how to create get a Web-MVC Spring-Boot project started. You will notice I take the no-XML approach and I’ll try to keep my examples as XML-free as they can be because it’s hard to find fresh documentation about it on the Web. So, let me start with the build.gradle file:

As you can see, no big changes from my previous example. Basically all you have to do is change spring-boot-starter to spring-boot-starter-web. Ok, now let’s have a look on the...

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...

%d bloggers like this: