Skip to main content

Posts

Showing posts from March, 2022

Getting started with Micronaut using Gradle

Getting started In this tutorial, we will create a Micronaut application using Gradle. Github Link What you will need Java installed on your machine Gradle installed on your machine Text Editor Steps First create your project folder, we will make a folder called "micronaut-project" for this tutorial. The second step is to add the build.gradle  file inside the project folder. This will contain a script to build the Micronaut application. Now update the build.gradle file. 1. Add following plugin plugins { id( "com.github.johnrengelman.shadow" ) version "7.1.1" id( "io.micronaut.application" ) version "3.2.0" } This will help to build application executable jars.        2. Next, add dependencies. dependencies { annotationProcessor( "io.micronaut:micronaut-http-validation" ) implementation( "io.micronaut:micronaut-http-client" ) implementation( "io.micronaut:micronaut-jackson-databind" )

Subscribe for latest tutorial updates

* indicates required