Fix dependency issue happening after upgrade of sonar-api.