Spring boot application.version is null
<p>I'm using spring boot and was trying to retrieve the current application version. (basically the version in the pom.xml)</p>

<p>On the spring boot ref site I can see there is a ${application.version} that is meant to have the version present in the MANIFEST file. (I have checked in the jar, and the I indeed can see this line</p>

<pre><code>Implementation-Version: 0.1.1-SNAPSHOT
</code></pre>

<p>but in the code when I try to retrieve ${application.version} 
(using @Value throws an error saying the prop cannot be found) and using env.getProperty("application.version") returns null.</p>

<p>Is there anything I need to setup in order to be able to use this prop ?</p>