Gradle - Continuous Build

Back in 2015, Gradle introduced this feature which they called 'continuous build'. Those days, I was exploring Ratpack, and it was the first toolkit/ framework to leverage the continuous build feature. The idea here is to rerun the tasks whenever there is a code change. Gradle will first run the…

Micronaut HTTP Client - just the response body

In a previous post, we used io.micronaut.http.client.BlockingHttpClient to get response from an HTTP endpoint. We used the exchange method as follows. HttpResponse response = client.toBlocking().exchange("/greeting", String) If you are using Java instead of Groovy, you will pass "String.class" instead of "String".We had…

Groovy Scripts - How do they work?

If you are already familiar with Groovy, you know that Groovy supports script mode where you can write Groovy code without explicitly creating a class. This mode is suitable when you want to house the entire code in a single class. If you are new to Groovy, you might want…

Lambda Expressions Syntax - Java vs Kotlin

Both Java and Kotlin support lambda expressions. There are similarities in their syntax, though they are precisely not the same. Many of you may be using both languages at work. When you use multiple languages, the syntax of another language may peek in. In my example, after using Groovy for…

Micronaut CLI - The JVM Version

A few weeks ago, when I was checking for the versions of a tool on SDKMAN CLI, I noticed the broadcast message that a Micronaut 2 is available. If you are not familiar with SDKMAN already, you may want to take a look at my post on SDKMAN I installed…

SDKMAN - A must-have for all developers using JVM

Did you ever have to work with multiple Java projects and each of them was on different version Java or any JVM tools? SDKMAN is a CLI tool for managing multiple versions of Java and JVM tools. I started using this tool in its earlier form known as GVM(Groovy…

Micronaut HTTP Client - Parsing Response

I am using Micronaut 2.0 in this post. You can verify your version using the mn -Version command. Let us generate a controller using the create-controller command provided by the Micronaut CLI as follows. I am launching the CLI from myapp directory. ➜ myapp mn mn> create-controller com.nareshak.…