Micronaut AOT Configuration Reference

Every documented configuration property of Micronaut AOT, with types, descriptions, and defaults.

Micronaut AOT documentation

30 properties across 11 sections

Standard Optimizers

PropertyTypeDescription
WarningThese are not configuration properties to add in your regular Micronaut configuration files, but properties to be added to the Micronaut AOT configuration, via your build plugin. Please refer to the appropriate Maven or Gradle plugin for more details.

Module cached.environment

PropertyTypeDescription
PropertyDescriptionExample value
cached.environment.enabledEnables this optimization: Caches environment property values: environment properties will be deemed immutable after application startuptrue

Module deduce.environment

PropertyTypeDescription
PropertyDescriptionExample value
deduce.environment.enabledEnables this optimization: Deduces the environment at build time instead of runtimetrue

Module known.missing.types

PropertyTypeDescription
PropertyDescriptionExample value
known.missing.types.enabledEnables this optimization: Checks for the existence of some types at build time instead of runtimetrue
known.missing.types.listA list of types that the AOT analyzer needs to check for existence (comma separated)io.reactivex.Observable,​reactor.core.publisher.Flux,​kotlinx.coroutines.flow.Flow,​io.reactivex.rxjava3.core.Flowable,​io.reactivex.rxjava3.core.Observable,​io.reactivex.Single,​reactor.core.publisher.Mono,​io.reactivex.Maybe,​io.reactivex.rxjava3.core.Single,​io.reactivex.rxjava3.core.Maybe,​io.reactivex.Completable,​io.reactivex.rxjava3.core.Completable,​io.methvin.watchservice.MacOSXListeningWatchService,​io.micronaut.core.async.publisher.CompletableFuturePublisher,​io.micronaut.core.async.publisher.Publishers.JustPublisher,​io.micronaut.core.async.subscriber.Completable

Module logback.xml.to.java

PropertyTypeDescription
PropertyDescriptionExample value
logback.xml.to.java.enabledEnables this optimization: Replaces logback.xml with a pure Java configuration (Experimental)true

Module netty.properties

PropertyTypeDescription
PropertyDescriptionExample value
netty.properties.enabledEnables this optimization: Defines some Netty system properties when starting the application which optimize startup timestrue
netty.machine.idThe machine id used by Netty. By default, generates a random value at runtime. Set it to a fixed MAC address to override, or use the value 'netty' to disable the optimization and get it at runtime.random
netty.process.idThe process id to use for Netty. Defaults to a random PID at runtime. Set it to a fixed value (not recommended) or use the value 'netty' to disable the optimization and get it at runtime.random

Module precompute.environment.properties

PropertyTypeDescription
PropertyDescriptionExample value
precompute.environment.properties.enabledEnables this optimization: Precomputes Micronaut configuration property keys from the current environment variablestrue

Module property-source-loader.generate

PropertyTypeDescription
PropertyDescriptionExample value
property-source-loader.generate.enabledEnables this optimization: Converts configuration files supplied by property source loaders to Java configurationtrue
property-source-loader.typesThe PropertySourceLoader classnames to use for generating property sourcesio.micronaut.context.env.PropertiesPropertySourceLoader,​ io.micronaut.context.env.yaml.YamlPropertySourceLoader
property-source-loader.base-orderThe base order to use for the generated property sources. Positive value will be added to base order for specific environments-1073741824
property-source-loader.resource-namesThe resource names to generate property sources for. By default, it is 'application,bootstrap'.application,​bootstrap
property-source-loader.service-loader-excludeWhether the property source loaders specified by types should be excluded in service loadingtrue
yaml.to.java.config.enabledDeprecated option to enable the yaml property source generation. Use property-source-loader.types=io.micronaut.context.env.yaml.YamlPropertySourceLoader insteadfalse

Module scan.reactive.types

PropertyTypeDescription
PropertyDescriptionExample value
scan.reactive.types.enabledEnables this optimization: Scans reactive types at build time instead of runtimetrue

Module sealed.property.source

PropertyTypeDescription
PropertyDescriptionExample value
sealed.property.source.enabledEnables this optimization: Precomputes property sources at build timetrue

Module graalvm.config

PropertyTypeDescription
PropertyDescriptionExample value
graalvm.config.enabledEnables this optimization: Generates GraalVM configuration files required to load the AOT optimizationstrue
service.typesThe list of service types to be scanned (comma separated)io.micronaut.Service1,​io.micronaut.Service2