Skip to content

Commit 741561d

Browse files
committed
Make sure elasticsearch-rest-client is on the classpath
9.0.3 of elasticsearch-java switched its dependency on elasticsearch-rest-client from api to compileOnly so it is no longer on the classpath of a consumer. This commit reinstates the dependency so that our auto-configuration of the RestClient still happens. gh-46061 is tracking a switch to the new Rest5Client. See gh-46207
1 parent d191042 commit 741561d

File tree

2 files changed

+2
-0
lines changed
  • spring-boot-project

2 files changed

+2
-0
lines changed

spring-boot-project/spring-boot-starters/spring-boot-starter-data-elasticsearch/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ description = "Starter for using Elasticsearch search and analytics engine and S
2222

2323
dependencies {
2424
api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))
25+
api("org.elasticsearch.client:elasticsearch-rest-client")
2526
api("org.springframework.data:spring-data-elasticsearch")
2627

2728
runtimeOnly(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-json"))

spring-boot-project/spring-boot-test-autoconfigure/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dependencies {
3636
dockerTestImplementation("com.redis:testcontainers-redis")
3737
dockerTestImplementation("com.h2database:h2")
3838
dockerTestImplementation("org.assertj:assertj-core")
39+
dockerTestImplementation("org.elasticsearch.client:elasticsearch-rest-client")
3940
dockerTestImplementation("org.junit.jupiter:junit-jupiter")
4041
dockerTestImplementation("org.postgresql:postgresql")
4142
dockerTestImplementation("org.testcontainers:cassandra")

0 commit comments

Comments
 (0)