extensions/config-yaml/deployment/src/main/resources/META-INF/quarkus-skill.md
Add the extension to use application.yaml (or application.yml) instead of or alongside application.properties. Place the file in src/main/resources/.
quarkus:
http:
port: 8080
datasource:
db-kind: postgresql
username: admin
password: secret
jdbc:
url: jdbc:postgresql://localhost:5432/mydb
greeting:
message: Hello
name: World
Use %profile prefix:
"%dev":
quarkus:
datasource:
jdbc:
url: jdbc:h2:mem:devdb
"%test":
quarkus:
datasource:
jdbc:
url: jdbc:h2:mem:testdb
Note the quotes around %dev — YAML requires them because % is a special character.
application.properties and application.yaml can exist simultaneously. Properties from both are merged, with application.yaml taking precedence for duplicate keys.
%dev must be "%dev" in YAML — without quotes, YAML parsers may reject the file.application.yaml overrides application.properties for the same key. System properties and environment variables override both.quarkus.http.port becomes quarkus: http: port:.quarkus.http.cors.origins becomes a YAML list under origins:.