Package io.quarkus.deployment
Interface ConfigBuildTimeConfig
@ConfigMapping(prefix="quarkus.config")
@ConfigRoot(phase=BUILD_TIME)
@ConfigDocPrefix("quarkus.config")
public interface ConfigBuildTimeConfig
Configuration
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIf set totrue, all configuration is frozen at build time.booleanSet this totrueto read configuration from system properties and environment variables only.
-
Method Details
-
systemOnly
@WithName("sources.system-only") @WithDefault("false") boolean systemOnly()Set this to
trueto read configuration from system properties and environment variables only. This only applies to runtime. -
fixedAtBuildTime
@WithName("fixed-at-build-time") @WithDefault("false") boolean fixedAtBuildTime()If set totrue, all configuration is frozen at build time. All values fromapplication.propertiesand similar file-based sources are baked into the application artifact at the highest priority. At runtime, no external configuration sources are consulted: noapplication.properties, no.envfiles, no system properties, and no environment variables can affect configuration values.The only exceptions are a small set of JVM environment properties (
java.io.tmpdir,user.home,user.dir) which are resolved at runtime to support@WithDefaultexpressions whose values are inherently machine-dependent.This is useful for CLI applications and sealed/immutable deployments where the binary's behavior must be fully determined at build time.
Computed defaults (
@WithDefault) and programmatic values set by recorders still work normally. When enabled, this supersedesquarkus.config.sources.system-only.
-