mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Adapt to changes in Spring Data Elasticsearch's transitive deps
See gh-31611
This commit is contained in:
parent
21f5f43365
commit
eb9df8ebfe
@ -23,6 +23,7 @@ import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.elasticsearch.ElasticsearchException;
|
||||
import org.elasticsearch.client.indices.GetIndexRequest;
|
||||
import reactor.netty.http.client.HttpClient;
|
||||
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
@ -50,7 +51,8 @@ import org.springframework.web.reactive.function.client.WebClient;
|
||||
* @since 3.0.0
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@ConditionalOnClass({ ReactiveRestClients.class, ElasticsearchException.class, WebClient.class, HttpClient.class })
|
||||
@ConditionalOnClass({ ReactiveRestClients.class, ElasticsearchException.class, GetIndexRequest.class, WebClient.class,
|
||||
HttpClient.class })
|
||||
@EnableConfigurationProperties(ElasticsearchProperties.class)
|
||||
@SuppressWarnings("deprecation")
|
||||
public class ReactiveElasticsearchClientAutoConfiguration {
|
||||
|
@ -103,6 +103,9 @@ dependencies {
|
||||
testImplementation("org.thymeleaf:thymeleaf")
|
||||
|
||||
testRuntimeOnly("org.elasticsearch:elasticsearch")
|
||||
testRuntimeOnly("org.elasticsearch.client:elasticsearch-rest-high-level-client") {
|
||||
exclude group: "commons-logging", module: "commons-logging"
|
||||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
|
Loading…
Reference in New Issue
Block a user