Since I26e38a8c3 generated version information is included into
common:server artifact. This means that every time the generated
version is changed (the outcome of git describe command) the above
artifact is changed. As the consequence, almost all tests are
re-executed.
To rectify, isolate Version file in its own artifact and supply it
to tests and WAR packaging machinery. Don't bother to isolate the
version test in its own test rule, as there are only auto value
tests in addition to version tests. These two tests require 0.4 sec.
on my laptop. With this approach, every time, the new gerrit version
is generated, only common:server_tests rule is re-executed.
Bug: Issue 7737
Change-Id: Ib769c97ae651bdb347f5817ccc42e8dc52b5b975