quarkus.flyway.locations is a build-time property but these locations may differ based on the current environment (dev, test, prod).
Currently, there is no way to do this with quarkus.
https://flywaydb.org/documentation/tutorials/injectingEnvironments
Corresponding upstream issue: https://github.com/quarkusio/quarkus/issues/15072