What is a good way to handle a version number in a Java application?

前端 未结 6 806
[愿得一人]
[愿得一人] 2020-12-23 10:25

I am developing a desktop app using Java and Swing Application Framework. I have an application about box and I\'d like to have that box contain some indication of what ver

6条回答
  •  隐瞒了意图╮
    2020-12-23 10:47

    With Maven I've used the buildnumber-maven-plugin which gets the revision number from Subversion or uses a sequence or a timestamp, which is then is used to replace a ${buildNumber} placeholder where ever you like. I suppose that other build tools and continuous integration servers have similar features. Search your favorite search engine with " build number".

提交回复
热议问题