This post originated from an RSS feed registered with Java Buzz
by Erik C. Thauvin.
Original Post: Semantic Version Annotation Processor 1.0
Feed Title: Erik's Weblog
Feed URL: http://erik.thauvin.net/blog/feed.jsp?cat=Java
Feed Description: The Truth is Out There!
I've just released an annotation processor that automatically generates a class based on a Mustache template and containing the semantic version (major, minor, patch, etc.) that is read from a Properties file or defined in the annotation.
Using annotation elements:
Or using a properties file:
Upon running the annotation processor, a source file is automatically generated with static methods to access the semantic version data. The source is based on a fully customizable Mustache template.