Skip to content

Commit

Permalink
MANIFEST.MF now contains the Implementation-Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurizio Turatti committed Dec 23, 2014
2 parents fa28f1e + 3ba5d14 commit 5492ec3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
1 change: 0 additions & 1 deletion assembly.xml
Expand Up @@ -24,7 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<id>bin</id>
<formats>
<format>tar.gz</format>
<format>tar.bz2</format>
<format>zip</format>
</formats>
<fileSets>
Expand Down
20 changes: 19 additions & 1 deletion pom.xml
Expand Up @@ -160,6 +160,8 @@
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.softinstigate.restheart.Bootstrapper</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
Expand All @@ -177,12 +179,28 @@
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<attach>false</attach>
<attach>true</attach>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.softinstigate.restheart.Bootstrapper</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down
Expand Up @@ -41,7 +41,7 @@ public class Configuration {
/**
* the restheart version
*/
public static final String RESTHEART_VERSION = "0.9.3";
public static final String RESTHEART_VERSION = Configuration.class.getPackage().getImplementationVersion();

/**
* URL pointing to the online documentation specific for this version.
Expand Down

0 comments on commit 5492ec3

Please sign in to comment.