Micronaut Conventions

These plugins removes some of the boilerplate configuration in a multi-project Micronaut repository.

Works well with the Docker Conventions plugin.

Configure Library

build.gradle
plugins {
    id 'java'
    id 'no.conta.micronaut-library-conventions'
}

Configure Application

build.gradle
plugins {
    id 'no.conta.java-conventions'
    id 'no.conta.micronaut-application-conventions'
    id 'no.conta.docker-conventions'
}

micronaut {
    runtime 'netty'
}

dependencies {
    runtimeOnly 'ch.qos.logback:logback-classic'
}

application {
    mainClass.set 'no.conta.App'
}
gradle.properties
micronautVersion=4.4.0
lombokVersion=1.18.20