Best practice to migrate es plugin to opensearch?

Is there any best practice to migrate es plugin to opensearch?
I need to modify code of every plugin to adapte for opensearch:

  1. pom file for es dependency
  2. java source code for “import org.elasticsearch.xxxx”
  3. source code for the plugin package from “package org.elasticsearch.plugin.xxx;” to “package org.opensearch.plugin.xxx;”

any faster way ?

this guide might contain the information you’re looking for: opensearch-plugins/UPGRADING.md at main · opensearch-project/opensearch-plugins · GitHub

We need to modify EVERY file of EVERY plugin, that’s a lot of work…