如何解决@CucumberOptions 中格式选项的弃用问题?

How to resolve the deprecation of format option in @CucumberOptions?

当我在 @CucumberOptions 中使用选项 format 进行测试报告时,它显示格式选项已被弃用如何解决。

@CucumberOptions( monochrome = true, format = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })

插件替换格式

@CucumberOptions( monochrome = true,plugin = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })