Replace the high level REST client dependency with the Java API Client

Proprietary

Replaces org.elasticsearch.client:elasticsearch-rest-high-level-client and org.elasticsearch:elasticsearch with co.elastic.clients:elasticsearch-java in a repository whose code uses the Java API Client and no longer the high level client. The versions of the low level REST client and of the Jakarta JSON Processing API that the Java API Client needs are raised where a build, such as one of Spring Boot 2, manages older ones. Jackson Databind is added where the JacksonJsonpMapper uses it or a document of keys and values is built with it, and Joda-Time, which Elasticsearch 7 brought along, where code uses it.

io.moderne.elastic.elastic8.MigrateHighLevelRestClientDependencies
mod run . --recipe=io.moderne.elastic.elastic8.MigrateHighLevelRestClientDependencies

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.