Groovy Specific Modules

Additional modules exist specific to Groovy that improve the overall experience. These are detailed in the table below:

Table 1. Groovy Specific Modules
DependencyDescription

io.micronaut:micronaut-inject-groovy

Includes AST transformations to generate bean definitions. Should be compileOnly on your classpath.

io.micronaut:micronaut-runtime-groovy

Adds the ability to specify configuration placed in src/main/resources in Groovy format (i.e. application.groovy)

io.micronaut:micronaut-function-groovy

Includes AST transforms that make it easier to write Functions for AWS Lambda

The most common module you will need is micronaut-inject-groovy, which enables DI and AOP for classes written in Groovy.