I recently added some javadoc output to the version control system (since github shows the contents of the gh_pages
branch as a website, this was the easiest way to post them on the web ).
One of the problems is that javadoc puts javadoc launch date / time on each file, so you always have changes to all your files from one commit to the next. Therefore, do not expect that you will have a useful diff that will show you what documentation has really changed between your versions if you fail to somehow ignore these comment lines when distinguishing. (Actually, due to another question, I figured out how to skip the timestamp.)
And, of course, you can always restore your javadoc from checking old sources. And for released libraries, publish javadoc of the released version with it.
For third-party libraries that you use as jar files in your project (or anything you donโt compile yourself), it may be useful to keep the javadoc corresponding to the version used inside the source tree (and therefore the version too).
source share