Throw exception if blacklisted dependency is declared.