i have updated my cucumber version after that it is giving following exception:
WARNING: You are using deprecated Main class. Please use io.cucumber
As stated by @mpkorstanje:
The correct class to use is io.cucumber.core.api.Main