Add rules to repackage test dependencies.
Add rules to repackage test dependencies.

(cherry picked from commit 8b46bfb2ea78839ab9725c81d643e1aa62d11c9d)

bazelbuild/intellij,bazelbuild/intellij,bazelbuild/intellij,bazelbuild/intellij,bazelbuild/intellij,bazelbuild/intellij,bazelbuild/intellij