Distributing your module
Versioning your module
Module version information
Across modules have version information attached in the form of an AcrossVersionInfo
property.
This object provides information like the current version and time when it was built.
By default this information is fetched automatically from the META-INF/MANIFEST.MF resource.
The following attributes are required for a fully configured AcrossVersionInfo
instance:
Attribute | Example | Description |
---|---|---|
Implementation-Title |
across-web |
Name of the project the class ( |
Implementation-Version |
{across-version} |
Build version of the |
Build-Time |
20150831-1011 |
Timestamp when the version was built (in yyyyMMdd-HHmm format). |
Using Maven a valid MANIFEST file can automatically be created using the following plugin configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Build-Time>${maven.build.timestamp}</Build-Time>
</manifestEntries>
</archive>
</configuration>
</plugin>