The below is the setup for BDD framework:
JSON PATH AND XML PATH: it is needed for verifying Json and XML responses.
The last 3 libraries are used only when you used BDD framework. If you only use TestNG framework then the last 3 libraries ie java hamcrest, core and library is not needed.