QPID-5048: fix scope on dependency

merge from trunk r1591247


git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1591699 13f79535-47bb-0310-9956-ffa450edef68