Revert "Fix compilation error against current master"
Revert "Fix compilation error against current master"

This was a wrong fix as plugins cannot transitively depend on any gerrit
core library, that itself transitively depends on substantial sub-graph
of gerrit core. The correct fix is to export the the needed library in
the Plugin API.

This reverts commit 85a07f6a039cc5290b963bd42ebc2b33cd698cd4.

Change-Id: I3579f1ceb9563bca02ebd441660cec6c8c0518e8

GerritCodeReview/plugins_delete-project,GerritCodeReview/plugins_delete-project,GerritCodeReview/plugins_delete-project,GerritCodeReview/plugins_delete-project