Micronaut 5 Conventions
| Pre-release scaffold — currently built on Micronaut Gradle Plugin 4.x. Micronaut Framework 5 is in milestone phase (5.0.0-M10 as of Feb 2026) and the Micronaut Gradle Plugin 5.x has not been released yet. This module will be updated to the 5.x Gradle plugin once it goes GA. |
These plugins remove some of the boilerplate configuration in a multi-project Micronaut v5 repository.
Works well with the Docker Conventions plugin.
Configure Application
build.gradle
plugins {
id 'no.conta.java-conventions'
id 'no.conta.micronaut-v5-application-conventions'
id 'no.conta.docker-conventions'
}
micronaut {
runtime 'netty'
testRuntime 'spock2'
}
dependencies {
runtimeOnly 'ch.qos.logback:logback-classic'
}
application {
mainClass.set 'no.conta.App'
}
gradle.properties
# example file
micronautVersion=4.9.2
lombokVersion=1.18.20