OSGi™ Annotation
Release 6

org.osgi.annotation.versioning
Annotation Type Version


@Documented
@Retention(value=CLASS)
@Target(value=PACKAGE)
public @interface Version

Specify the version of a package.

This annotation is not retained at runtime. It is for use by tools to generate bundle manifests or otherwise process the version of a package.

See Also:
Semantic Versioning

Required Element Summary
 String value
          The version of the annotated package.
 

Element Detail

value

public abstract String value
The version of the annotated package.

The version must be a valid OSGi version string.


OSGi™ Annotation
Release 6

Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0