Browse Source

Polish "Elasticsearch starter should depend on elasticsearch-java"

See gh-48141
pull/48143/head
Stéphane Nicoll 1 month ago
parent
commit
c6c649f644
  1. 2
      documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/data/nosql.adoc
  2. 5
      starter/spring-boot-starter-elasticsearch/build.gradle

2
documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/data/nosql.adoc

@ -361,7 +361,7 @@ To disable auto-configuration of the Sniffer, set configprop:spring.elasticsearc @@ -361,7 +361,7 @@ To disable auto-configuration of the Sniffer, set configprop:spring.elasticsearc
[[data.nosql.elasticsearch.connecting-using-rest.javaapiclient]]
==== Connecting to Elasticsearch Using ElasticsearchClient
If you have `co.elastic.clients:elasticsearch-java` on the classpath, Spring Boot will auto-configure and register an javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[] bean.
If you use the `spring-boot-starter-elasticsearch` or have added `co.elastic.clients:elasticsearch-java` to the classpath, Spring Boot will auto-configure and register an javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[] bean.
The javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[] uses a transport that depends upon the previously described javadoc:co.elastic.clients.transport.rest5_client.low_level.Rest5Client[].
Therefore, the properties described previously can be used to configure the javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[].

5
starter/spring-boot-starter-elasticsearch/build.gradle

@ -24,8 +24,5 @@ dependencies { @@ -24,8 +24,5 @@ dependencies {
api(project(":starter:spring-boot-starter"))
api(project(":module:spring-boot-elasticsearch"))
api("co.elastic.clients:elasticsearch-java") {
exclude group: "commons-logging", module: "commons-logging"
}
api("co.elastic.clients:elasticsearch-java")
}

Loading…
Cancel
Save