I moved from a plain Java EE application to quarkus.io.
In Java EE I had the a properties file with
version=${project.version}
and reeading this file in an JAX RS
I'm not sure if my approach is the best case scenario but you can try this:
pom.xml :
src/main/resources
true
**/application.properties
In application.properties use version property:
quarkus.version=${quarkus.platform.version}
Then use it as a config property:
@ConfigProperty(name = "quarkus.version")
String version;