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
Try
@ConfigProperty(name = "quarkus.application.version")
String version;
Also you can read the Implementation-Version from the manifest.
I'm not sure if my approach is the best case scenario but you can try this:
pom.xml :
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/application.properties</include>
</includes>
</resource>
</resources>
In application.properties use version property:
quarkus.version=${quarkus.platform.version}
Then use it as a config property:
@ConfigProperty(name = "quarkus.version")
String version;