Migrate cucumber.api to io.cucumber
MSALCucumber-JVM 5.0.0 moved the cucumber.api types to io.cucumber, but not as a single package rename: types were spread over io.cucumber.java, io.cucumber.junit, io.cucumber.testng, io.cucumber.plugin and io.cucumber.core. This recipe maps each cucumber.api type onto the package it actually moved to.
org. openrewrite. cucumber. jvm. CucumberApiToIoCucumbermod run . --recipe= org. openrewrite. cucumber. jvm. CucumberApiToIoCucumberInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate
cucumber.api.CucumberOptionstoio.cucumber.testng.CucumberOptions - Change type
cucumber.api.java.ObjectFactorytoio.cucumber.core.backend.ObjectFactory - Change type
cucumber.api.event.EventListenertoio.cucumber.plugin.EventListener - Change type
cucumber.api.event.ConcurrentEventListenertoio.cucumber.plugin.ConcurrentEventListener - Change type
cucumber.api.event.CanonicalEventOrdertoio.cucumber.core.plugin.CanonicalEventOrder - Rename package name
cucumber.api.eventtoio.cucumber.plugin.event - Change type
cucumber.api.formatter.AnsiEscapestoio.cucumber.core.plugin.AnsiEscapes - Change type
cucumber.api.formatter.ColorAwaretoio.cucumber.plugin.ColorAware - Change type
cucumber.api.formatter.NiceAppendabletoio.cucumber.core.plugin.NiceAppendable - Change type
cucumber.api.formatter.StrictAwaretoio.cucumber.plugin.StrictAware - Change type
cucumber.api.Argumenttoio.cucumber.plugin.event.Argument - Change type
cucumber.api.CucumberOptionstoio.cucumber.junit.CucumberOptions - Change type
cucumber.api.DataTabletoio.cucumber.datatable.DataTable - Change type
cucumber.api.HookTestSteptoio.cucumber.plugin.event.HookTestStep - Change type
cucumber.api.HookTypetoio.cucumber.plugin.event.HookType - Change type
cucumber.api.Pendingtoio.cucumber.core.backend.Pending - Change type
cucumber.api.PendingExceptiontoio.cucumber.java.PendingException - Change type
cucumber.api.PickleStepTestSteptoio.cucumber.plugin.event.PickleStepTestStep - Change type
cucumber.api.Plugintoio.cucumber.plugin.Plugin - Change type
cucumber.api.Resulttoio.cucumber.plugin.event.Result - Change type
cucumber.api.Scenariotoio.cucumber.java.Scenario - Change type
SnippetTypetoCucumberOptions$SnippetType - Change type
cucumber.api.SummaryPrintertoio.cucumber.plugin.SummaryPrinter - Change type
cucumber.api.TestCasetoio.cucumber.plugin.event.TestCase - Change type
cucumber.api.TestSteptoio.cucumber.plugin.event.TestStep - Change type
cucumber.api.Transposetoio.cucumber.java.Transpose - Change type
cucumber.api.TypeRegistrytoio.cucumber.core.api.TypeRegistry - Change type
cucumber.api.TypeRegistryConfigurertoio.cucumber.core.api.TypeRegistryConfigurer - Change type
cucumber.api.cli.Maintoio.cucumber.core.cli.Main - Rename package name
cucumber.api.java8toio.cucumber.java8 - Rename package name
cucumber.api.javatoio.cucumber.java - Rename package name
cucumber.api.junittoio.cucumber.junit - Rename package name
cucumber.api.testngtoio.cucumber.testng