Skip to content

Commit c6c649f

Browse files
committed
Polish "Elasticsearch starter should depend on elasticsearch-java"
See gh-48141
1 parent a2dc77f commit c6c649f

File tree

2 files changed

+2
-5
lines changed
  • documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/data
  • starter/spring-boot-starter-elasticsearch

2 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ To disable auto-configuration of the Sniffer, set configprop:spring.elasticsearc
361361
[[data.nosql.elasticsearch.connecting-using-rest.javaapiclient]]
362362
==== Connecting to Elasticsearch Using ElasticsearchClient
363363

364-
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.
364+
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.
365365

366366
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[].
367367
Therefore, the properties described previously can be used to configure the javadoc:co.elastic.clients.elasticsearch.ElasticsearchClient[].

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,5 @@ dependencies {
2424
api(project(":starter:spring-boot-starter"))
2525

2626
api(project(":module:spring-boot-elasticsearch"))
27-
28-
api("co.elastic.clients:elasticsearch-java") {
29-
exclude group: "commons-logging", module: "commons-logging"
30-
}
27+
api("co.elastic.clients:elasticsearch-java")
3128
}

0 commit comments

Comments
 (0)