From the beginning gerrit-acceptance-framework artifact shipped the
same content as gerrit-plugin-api. Given that provided_deps attribute
is not available in java_library rules, see issue: [1], there was no
way to exclude libraries already shipped in gerrit-plugin-api.
However with this commit: [2], that is available in recent Bazel
versions, deploy_env attribute is exposed in java_binary rule. With it
it is now possible to achieve transitive classpath subtraction to create
deployable jars suited for different environments.
Use this feature to subtract transitive dependencies already shipped in
gerrit-plugin-api. As the consequence the size of the test framework
artifact is reduced from ca. 70 MB to 6 MB.
While already on it, remove some related TODO comments as well.
[1] https://github.com/bazelbuild/bazel/issues/1402
[2] a92347e405
Change-Id: I0deada504648d27465f57021787885705635b8b4