parent
							
								
									86f950bc35
								
							
						
					
					
						commit
						0690e870d2
					
				|  | @ -67,6 +67,7 @@ include "spring-boot-project:spring-boot-dependencies" | ||||||
| include "spring-boot-project:spring-boot-devtools" | include "spring-boot-project:spring-boot-devtools" | ||||||
| include "spring-boot-project:spring-boot-docker-compose" | include "spring-boot-project:spring-boot-docker-compose" | ||||||
| include "spring-boot-project:spring-boot-docs" | include "spring-boot-project:spring-boot-docs" | ||||||
|  | include "spring-boot-project:spring-boot-elasticsearch" | ||||||
| include "spring-boot-project:spring-boot-flyway" | include "spring-boot-project:spring-boot-flyway" | ||||||
| include "spring-boot-project:spring-boot-freemarker" | include "spring-boot-project:spring-boot-freemarker" | ||||||
| include "spring-boot-project:spring-boot-groovy-templates" | include "spring-boot-project:spring-boot-groovy-templates" | ||||||
|  |  | ||||||
|  | @ -36,6 +36,7 @@ dependencies { | ||||||
| 	optional(project(":spring-boot-project:spring-boot-activemq")) | 	optional(project(":spring-boot-project:spring-boot-activemq")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-amqp")) | 	optional(project(":spring-boot-project:spring-boot-amqp")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-artemis")) | 	optional(project(":spring-boot-project:spring-boot-artemis")) | ||||||
|  | 	optional(project(":spring-boot-project:spring-boot-elasticsearch")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-flyway")) | 	optional(project(":spring-boot-project:spring-boot-flyway")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-jackson")) | 	optional(project(":spring-boot-project:spring-boot-jackson")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-jdbc")) | 	optional(project(":spring-boot-project:spring-boot-jdbc")) | ||||||
|  |  | ||||||
|  | @ -28,7 +28,6 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; | import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration; |  | ||||||
| import org.springframework.context.annotation.Bean; | import org.springframework.context.annotation.Bean; | ||||||
| import org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient; | import org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient; | ||||||
| 
 | 
 | ||||||
|  | @ -40,7 +39,8 @@ import org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchCl | ||||||
|  * @author Aleksander Lech |  * @author Aleksander Lech | ||||||
|  * @since 2.3.2 |  * @since 2.3.2 | ||||||
|  */ |  */ | ||||||
| @AutoConfiguration(after = ReactiveElasticsearchClientAutoConfiguration.class) | @AutoConfiguration( | ||||||
|  | 		afterName = "org.springframework.boot.elasticsearch.autoconfigure.ReactiveElasticsearchClientAutoConfiguration") | ||||||
| @ConditionalOnClass({ ReactiveElasticsearchClient.class, Flux.class }) | @ConditionalOnClass({ ReactiveElasticsearchClient.class, Flux.class }) | ||||||
| @ConditionalOnBean(ReactiveElasticsearchClient.class) | @ConditionalOnBean(ReactiveElasticsearchClient.class) | ||||||
| @ConditionalOnEnabledHealthIndicator("elasticsearch") | @ConditionalOnEnabledHealthIndicator("elasticsearch") | ||||||
|  |  | ||||||
|  | @ -28,7 +28,6 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; | import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration; |  | ||||||
| import org.springframework.context.annotation.Bean; | import org.springframework.context.annotation.Bean; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  | @ -38,7 +37,8 @@ import org.springframework.context.annotation.Bean; | ||||||
|  * @author Artsiom Yudovin |  * @author Artsiom Yudovin | ||||||
|  * @since 2.1.1 |  * @since 2.1.1 | ||||||
|  */ |  */ | ||||||
| @AutoConfiguration(after = ElasticsearchRestClientAutoConfiguration.class) | @AutoConfiguration( | ||||||
|  | 		afterName = "org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration") | ||||||
| @ConditionalOnClass(RestClient.class) | @ConditionalOnClass(RestClient.class) | ||||||
| @ConditionalOnBean(RestClient.class) | @ConditionalOnBean(RestClient.class) | ||||||
| @ConditionalOnEnabledHealthIndicator("elasticsearch") | @ConditionalOnEnabledHealthIndicator("elasticsearch") | ||||||
|  |  | ||||||
|  | @ -24,8 +24,8 @@ import org.springframework.boot.actuate.data.elasticsearch.ElasticsearchReactive | ||||||
| import org.springframework.boot.actuate.elasticsearch.ElasticsearchRestClientHealthIndicator; | import org.springframework.boot.actuate.elasticsearch.ElasticsearchRestClientHealthIndicator; | ||||||
| import org.springframework.boot.autoconfigure.AutoConfigurations; | import org.springframework.boot.autoconfigure.AutoConfigurations; | ||||||
| import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration; | import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ReactiveElasticsearchClientAutoConfiguration; | ||||||
| import org.springframework.boot.test.context.runner.ApplicationContextRunner; | import org.springframework.boot.test.context.runner.ApplicationContextRunner; | ||||||
| 
 | 
 | ||||||
| import static org.assertj.core.api.Assertions.assertThat; | import static org.assertj.core.api.Assertions.assertThat; | ||||||
|  |  | ||||||
|  | @ -23,7 +23,7 @@ import org.junit.jupiter.api.Test; | ||||||
| import org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration; | import org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration; | ||||||
| import org.springframework.boot.actuate.elasticsearch.ElasticsearchRestClientHealthIndicator; | import org.springframework.boot.actuate.elasticsearch.ElasticsearchRestClientHealthIndicator; | ||||||
| import org.springframework.boot.autoconfigure.AutoConfigurations; | import org.springframework.boot.autoconfigure.AutoConfigurations; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration; | ||||||
| import org.springframework.boot.test.context.FilteredClassLoader; | import org.springframework.boot.test.context.FilteredClassLoader; | ||||||
| import org.springframework.boot.test.context.runner.ApplicationContextRunner; | import org.springframework.boot.test.context.runner.ApplicationContextRunner; | ||||||
| import org.springframework.context.annotation.Bean; | import org.springframework.context.annotation.Bean; | ||||||
|  |  | ||||||
|  | @ -61,6 +61,7 @@ dependencies { | ||||||
| 
 | 
 | ||||||
| 	optional(project(":spring-boot-project:spring-boot-activemq")) | 	optional(project(":spring-boot-project:spring-boot-activemq")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-artemis")) | 	optional(project(":spring-boot-project:spring-boot-artemis")) | ||||||
|  | 	optional(project(":spring-boot-project:spring-boot-elasticsearch")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-flyway")) | 	optional(project(":spring-boot-project:spring-boot-flyway")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-jackson")) | 	optional(project(":spring-boot-project:spring-boot-jackson")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-jdbc")) | 	optional(project(":spring-boot-project:spring-boot-jdbc")) | ||||||
|  |  | ||||||
|  | @ -27,8 +27,8 @@ import org.springframework.boot.autoconfigure.data.alt.elasticsearch.CityElastic | ||||||
| import org.springframework.boot.autoconfigure.data.elasticsearch.city.City; | import org.springframework.boot.autoconfigure.data.elasticsearch.city.City; | ||||||
| import org.springframework.boot.autoconfigure.data.elasticsearch.city.CityRepository; | import org.springframework.boot.autoconfigure.data.elasticsearch.city.CityRepository; | ||||||
| import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage; | import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration; | ||||||
| import org.springframework.boot.test.context.runner.ApplicationContextRunner; | import org.springframework.boot.test.context.runner.ApplicationContextRunner; | ||||||
| import org.springframework.boot.testsupport.container.TestImage; | import org.springframework.boot.testsupport.container.TestImage; | ||||||
| import org.springframework.context.annotation.Configuration; | import org.springframework.context.annotation.Configuration; | ||||||
|  |  | ||||||
|  | @ -28,9 +28,9 @@ import org.springframework.boot.autoconfigure.data.alt.elasticsearch.CityReactiv | ||||||
| import org.springframework.boot.autoconfigure.data.elasticsearch.city.City; | import org.springframework.boot.autoconfigure.data.elasticsearch.city.City; | ||||||
| import org.springframework.boot.autoconfigure.data.elasticsearch.city.ReactiveCityRepository; | import org.springframework.boot.autoconfigure.data.elasticsearch.city.ReactiveCityRepository; | ||||||
| import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage; | import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ReactiveElasticsearchClientAutoConfiguration; | ||||||
| import org.springframework.boot.test.context.FilteredClassLoader; | import org.springframework.boot.test.context.FilteredClassLoader; | ||||||
| import org.springframework.boot.test.context.runner.ApplicationContextRunner; | import org.springframework.boot.test.context.runner.ApplicationContextRunner; | ||||||
| import org.springframework.boot.testsupport.container.TestImage; | import org.springframework.boot.testsupport.container.TestImage; | ||||||
|  |  | ||||||
|  | @ -19,8 +19,6 @@ package org.springframework.boot.autoconfigure.data.elasticsearch; | ||||||
| import org.springframework.boot.autoconfigure.AutoConfiguration; | import org.springframework.boot.autoconfigure.AutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration; |  | ||||||
| import org.springframework.context.annotation.Import; | import org.springframework.context.annotation.Import; | ||||||
| import org.springframework.data.elasticsearch.client.elc.ElasticsearchTemplate; | import org.springframework.data.elasticsearch.client.elc.ElasticsearchTemplate; | ||||||
| import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories; | import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories; | ||||||
|  | @ -38,7 +36,8 @@ import org.springframework.data.elasticsearch.repository.config.EnableReactiveEl | ||||||
|  * @see EnableReactiveElasticsearchRepositories |  * @see EnableReactiveElasticsearchRepositories | ||||||
|  */ |  */ | ||||||
| @AutoConfiguration( | @AutoConfiguration( | ||||||
| 		after = { ElasticsearchClientAutoConfiguration.class, ReactiveElasticsearchClientAutoConfiguration.class }) | 		afterName = { "org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientAutoConfiguration", | ||||||
|  | 				"org.springframework.boot.elasticsearch.autoconfigure.ReactiveElasticsearchClientAutoConfiguration" }) | ||||||
| @ConditionalOnClass({ ElasticsearchTemplate.class }) | @ConditionalOnClass({ ElasticsearchTemplate.class }) | ||||||
| @Import({ ElasticsearchDataConfiguration.BaseConfiguration.class, | @Import({ ElasticsearchDataConfiguration.BaseConfiguration.class, | ||||||
| 		ElasticsearchDataConfiguration.JavaClientConfiguration.class, | 		ElasticsearchDataConfiguration.JavaClientConfiguration.class, | ||||||
|  |  | ||||||
|  | @ -680,85 +680,6 @@ | ||||||
|         "level": "error" |         "level": "error" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.jest.connection-timeout", |  | ||||||
|       "type": "java.time.Duration", |  | ||||||
|       "description": "Connection timeout.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.jest.multi-threaded", |  | ||||||
|       "type": "java.lang.Boolean", |  | ||||||
|       "description": "Whether to enable connection requests from multiple execution threads.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.jest.password", |  | ||||||
|       "type": "java.lang.String", |  | ||||||
|       "description": "Login password.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.jest.proxy.host", |  | ||||||
|       "type": "java.lang.String", |  | ||||||
|       "description": "Proxy host the HTTP client should use.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.jest.proxy.port", |  | ||||||
|       "type": "java.lang.Integer", |  | ||||||
|       "description": "Proxy port the HTTP client should use.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.jest.read-timeout", |  | ||||||
|       "type": "java.time.Duration", |  | ||||||
|       "description": "Read timeout.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.jest.uris", |  | ||||||
|       "type": "java.util.List<java.lang.String>", |  | ||||||
|       "description": "Comma-separated list of the Elasticsearch instances to use.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.jest.username", |  | ||||||
|       "type": "java.lang.String", |  | ||||||
|       "description": "Login username.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.uris", |  | ||||||
|       "defaultValue": [ |  | ||||||
|         "http://localhost:9200" |  | ||||||
|       ] |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "spring.elasticsearch.webclient.max-in-memory-size", |  | ||||||
|       "type": "org.springframework.util.unit.DataSize", |  | ||||||
|       "description": "Limit on the number of bytes that can be buffered whenever the input stream needs to be aggregated.", |  | ||||||
|       "deprecation": { |  | ||||||
|         "level": "error", |  | ||||||
|         "reason": "Reactive Elasticsearch client no longer uses WebClient." |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |     { | ||||||
|       "name": "spring.graphql.schema.file-extensions", |       "name": "spring.graphql.schema.file-extensions", | ||||||
|       "defaultValue": ".graphqls,.gqls" |       "defaultValue": ".graphqls,.gqls" | ||||||
|  |  | ||||||
|  | @ -33,9 +33,6 @@ org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration | org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration | org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration | org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration |  | ||||||
| org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration |  | ||||||
| org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration |  | ||||||
| org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration | org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQueryByExampleAutoConfiguration | org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQueryByExampleAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQuerydslAutoConfiguration | org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQuerydslAutoConfiguration | ||||||
|  |  | ||||||
|  | @ -25,9 +25,9 @@ import org.junit.jupiter.api.Test; | ||||||
| import org.springframework.boot.autoconfigure.AutoConfigurations; | import org.springframework.boot.autoconfigure.AutoConfigurations; | ||||||
| import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage; | import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage; | ||||||
| import org.springframework.boot.autoconfigure.data.elasticsearch.city.City; | import org.springframework.boot.autoconfigure.data.elasticsearch.city.City; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ReactiveElasticsearchClientAutoConfiguration; | ||||||
| import org.springframework.boot.test.context.runner.ApplicationContextRunner; | import org.springframework.boot.test.context.runner.ApplicationContextRunner; | ||||||
| import org.springframework.context.annotation.Bean; | import org.springframework.context.annotation.Bean; | ||||||
| import org.springframework.context.annotation.Configuration; | import org.springframework.context.annotation.Configuration; | ||||||
|  |  | ||||||
|  | @ -1995,6 +1995,7 @@ bom { | ||||||
| 				"spring-boot-configuration-processor", | 				"spring-boot-configuration-processor", | ||||||
| 				"spring-boot-devtools", | 				"spring-boot-devtools", | ||||||
| 				"spring-boot-docker-compose", | 				"spring-boot-docker-compose", | ||||||
|  | 				"spring-boot-elasticsearch", | ||||||
| 				"spring-boot-flyway", | 				"spring-boot-flyway", | ||||||
| 				"spring-boot-freemarker", | 				"spring-boot-freemarker", | ||||||
| 				"spring-boot-groovy-templates", | 				"spring-boot-groovy-templates", | ||||||
|  |  | ||||||
|  | @ -54,6 +54,7 @@ dependencies { | ||||||
| 	optional(project(":spring-boot-project:spring-boot-artemis")) | 	optional(project(":spring-boot-project:spring-boot-artemis")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-autoconfigure-all")) | 	optional(project(":spring-boot-project:spring-boot-autoconfigure-all")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure")) | 	optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure")) | ||||||
|  | 	optional(project(":spring-boot-project:spring-boot-elasticsearch")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-flyway")) | 	optional(project(":spring-boot-project:spring-boot-flyway")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-jdbc")) | 	optional(project(":spring-boot-project:spring-boot-jdbc")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-liquibase")) | 	optional(project(":spring-boot-project:spring-boot-liquibase")) | ||||||
|  |  | ||||||
|  | @ -16,10 +16,10 @@ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.docker.compose.service.connection.elasticsearch; | package org.springframework.boot.docker.compose.service.connection.elasticsearch; | ||||||
| 
 | 
 | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails.Node; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails.Node.Protocol; |  | ||||||
| import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest; | import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails.Node; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails.Node.Protocol; | ||||||
| import org.springframework.boot.testsupport.container.TestImage; | import org.springframework.boot.testsupport.container.TestImage; | ||||||
| 
 | 
 | ||||||
| import static org.assertj.core.api.Assertions.assertThat; | import static org.assertj.core.api.Assertions.assertThat; | ||||||
|  |  | ||||||
|  | @ -18,11 +18,11 @@ package org.springframework.boot.docker.compose.service.connection.elasticsearch | ||||||
| 
 | 
 | ||||||
| import java.util.List; | import java.util.List; | ||||||
| 
 | 
 | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails.Node.Protocol; |  | ||||||
| import org.springframework.boot.docker.compose.core.RunningService; | import org.springframework.boot.docker.compose.core.RunningService; | ||||||
| import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory; | import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory; | ||||||
| import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource; | import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails.Node.Protocol; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * {@link DockerComposeConnectionDetailsFactory} to create |  * {@link DockerComposeConnectionDetailsFactory} to create | ||||||
|  |  | ||||||
|  | @ -82,6 +82,7 @@ dependencies { | ||||||
| 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "autoConfigurationMetadata")) | 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure", configuration: "autoConfigurationMetadata")) | ||||||
| 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "autoConfigurationMetadata")) | 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "autoConfigurationMetadata")) | ||||||
| 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "autoConfigurationMetadata")) | 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "autoConfigurationMetadata")) | ||||||
|  | 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-elasticsearch", configuration: "autoConfigurationMetadata")) | ||||||
| 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-flyway", configuration: "autoConfigurationMetadata")) | 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-flyway", configuration: "autoConfigurationMetadata")) | ||||||
| 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-freemarker", configuration: "autoConfigurationMetadata")) | 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-freemarker", configuration: "autoConfigurationMetadata")) | ||||||
| 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "autoConfigurationMetadata")) | 	autoConfiguration(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "autoConfigurationMetadata")) | ||||||
|  | @ -108,6 +109,7 @@ dependencies { | ||||||
| 	configurationProperties(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "configurationPropertiesMetadata")) | 	configurationProperties(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "configurationPropertiesMetadata")) | ||||||
| 	configurationProperties(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "configurationPropertiesMetadata")) | 	configurationProperties(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "configurationPropertiesMetadata")) | ||||||
| 	configurationProperties(project(path: ":spring-boot-project:spring-boot-docker-compose", configuration: "configurationPropertiesMetadata")) | 	configurationProperties(project(path: ":spring-boot-project:spring-boot-docker-compose", configuration: "configurationPropertiesMetadata")) | ||||||
|  | 	configurationProperties(project(path: ":spring-boot-project:spring-boot-elasticsearch", configuration: "configurationPropertiesMetadata")) | ||||||
| 	configurationProperties(project(path: ":spring-boot-project:spring-boot-flyway", configuration: "configurationPropertiesMetadata")) | 	configurationProperties(project(path: ":spring-boot-project:spring-boot-flyway", configuration: "configurationPropertiesMetadata")) | ||||||
| 	configurationProperties(project(path: ":spring-boot-project:spring-boot-freemarker", configuration: "configurationPropertiesMetadata")) | 	configurationProperties(project(path: ":spring-boot-project:spring-boot-freemarker", configuration: "configurationPropertiesMetadata")) | ||||||
| 	configurationProperties(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "configurationPropertiesMetadata")) | 	configurationProperties(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "configurationPropertiesMetadata")) | ||||||
|  |  | ||||||
|  | @ -335,7 +335,7 @@ spring: | ||||||
| ==== Connecting to Elasticsearch Using RestClient | ==== Connecting to Elasticsearch Using RestClient | ||||||
| 
 | 
 | ||||||
| If you have `elasticsearch-rest-client` on the classpath, Spring Boot will auto-configure and register a javadoc:org.springframework.web.client.RestClient[] bean. | If you have `elasticsearch-rest-client` on the classpath, Spring Boot will auto-configure and register a javadoc:org.springframework.web.client.RestClient[] bean. | ||||||
| In addition to the properties described previously, to fine-tune the javadoc:org.springframework.web.client.RestClient[] you can register an arbitrary number of beans that implement javadoc:org.springframework.boot.autoconfigure.elasticsearch.RestClientBuilderCustomizer[] for more advanced customizations. | In addition to the properties described previously, to fine-tune the javadoc:org.springframework.web.client.RestClient[] you can register an arbitrary number of beans that implement javadoc:org.springframework.boot.elasticsearch.autoconfigure.RestClientBuilderCustomizer[] for more advanced customizations. | ||||||
| To take full control over the clients' configuration, define a javadoc:org.elasticsearch.client.RestClientBuilder[] bean. | To take full control over the clients' configuration, define a javadoc:org.elasticsearch.client.RestClientBuilder[] bean. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -92,7 +92,7 @@ The following service connections are currently supported: | ||||||
| | javadoc:org.springframework.boot.autoconfigure.cassandra.CassandraConnectionDetails[] | | javadoc:org.springframework.boot.autoconfigure.cassandra.CassandraConnectionDetails[] | ||||||
| | Containers named "cassandra" or "bitnami/cassandra" | | Containers named "cassandra" or "bitnami/cassandra" | ||||||
| 
 | 
 | ||||||
| | javadoc:org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails[] | | javadoc:org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails[] | ||||||
| | Containers named "elasticsearch" or "bitnami/elasticsearch" | | Containers named "elasticsearch" or "bitnami/elasticsearch" | ||||||
| 
 | 
 | ||||||
| | javadoc:org.springframework.boot.autoconfigure.hazelcast.HazelcastConnectionDetails[] | | javadoc:org.springframework.boot.autoconfigure.hazelcast.HazelcastConnectionDetails[] | ||||||
|  |  | ||||||
|  | @ -131,7 +131,7 @@ The following service connection factories are provided in the `spring-boot-test | ||||||
| | javadoc:org.springframework.boot.autoconfigure.couchbase.CouchbaseConnectionDetails[] | | javadoc:org.springframework.boot.autoconfigure.couchbase.CouchbaseConnectionDetails[] | ||||||
| | Containers of type javadoc:org.testcontainers.couchbase.CouchbaseContainer[] | | Containers of type javadoc:org.testcontainers.couchbase.CouchbaseContainer[] | ||||||
| 
 | 
 | ||||||
| | javadoc:org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails[] | | javadoc:org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails[] | ||||||
| | Containers of type javadoc:org.testcontainers.elasticsearch.ElasticsearchContainer[] | | Containers of type javadoc:org.testcontainers.elasticsearch.ElasticsearchContainer[] | ||||||
| 
 | 
 | ||||||
| | javadoc:org.springframework.boot.autoconfigure.flyway.FlywayConnectionDetails[] | | javadoc:org.springframework.boot.autoconfigure.flyway.FlywayConnectionDetails[] | ||||||
|  |  | ||||||
|  | @ -0,0 +1,62 @@ | ||||||
|  | /* | ||||||
|  |  * Copyright 2012-present the original author or authors. | ||||||
|  |  * | ||||||
|  |  * Licensed under the Apache License, Version 2.0 (the License); | ||||||
|  |  * you may not use this file except in compliance with the License. | ||||||
|  |  * You may obtain a copy of the License at | ||||||
|  |  * | ||||||
|  |  *      https://www.apache.org/licenses/LICENSE-2.0 | ||||||
|  |  * | ||||||
|  |  * Unless required by applicable law or agreed to in writing, software | ||||||
|  |  * distributed under the License is distributed on an "AS IS" BASIS, | ||||||
|  |  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||
|  |  * See the License for the specific language governing permissions and | ||||||
|  |  * limitations under the License. | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | plugins { | ||||||
|  | 	id "java-library" | ||||||
|  | 	id "org.springframework.boot.auto-configuration" | ||||||
|  | 	id "org.springframework.boot.configuration-properties" | ||||||
|  | 	id "org.springframework.boot.deployed" | ||||||
|  | 	id "org.springframework.boot.docker-test" | ||||||
|  | 	id "org.springframework.boot.optional-dependencies" | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | description = "Spring Boot Elasticsearch" | ||||||
|  | 
 | ||||||
|  | dependencies { | ||||||
|  | 	api(project(":spring-boot-project:spring-boot")) | ||||||
|  | 	api("org.elasticsearch.client:elasticsearch-rest-client") | ||||||
|  | 
 | ||||||
|  | 	optional(project(":spring-boot-project:spring-boot-autoconfigure")) | ||||||
|  | 	optional(project(":spring-boot-project:spring-boot-jsonb")) | ||||||
|  | 	optional("co.elastic.clients:elasticsearch-java") { | ||||||
|  | 		exclude group: "commons-logging", module: "commons-logging" | ||||||
|  | 	} | ||||||
|  | 	optional("org.elasticsearch.client:elasticsearch-rest-client-sniffer") { | ||||||
|  | 		exclude group: "commons-logging", module: "commons-logging" | ||||||
|  | 	} | ||||||
|  | 	optional("com.fasterxml.jackson.core:jackson-databind") | ||||||
|  | 	optional("jakarta.json.bind:jakarta.json.bind-api") | ||||||
|  | 	optional("org.springframework.data:spring-data-elasticsearch") { | ||||||
|  | 		exclude group: "org.elasticsearch.client", module: "transport" | ||||||
|  | 	} | ||||||
|  | 	optional("io.projectreactor:reactor-core") | ||||||
|  | 
 | ||||||
|  | 	dockerTestImplementation(project(":spring-boot-project:spring-boot-test")) | ||||||
|  | 	dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker")) | ||||||
|  | 	dockerTestImplementation(project(":spring-boot-project:spring-boot-jackson")) | ||||||
|  | 	dockerTestImplementation("org.testcontainers:elasticsearch") | ||||||
|  | 	dockerTestImplementation("org.testcontainers:junit-jupiter") | ||||||
|  | 	dockerTestImplementation("org.testcontainers:testcontainers") | ||||||
|  | 
 | ||||||
|  | 	testImplementation(project(":spring-boot-project:spring-boot-test")) | ||||||
|  | 	testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")) | ||||||
|  | 	testImplementation(project(":spring-boot-project:spring-boot-jackson")) | ||||||
|  | 	testImplementation(project(":spring-boot-project:spring-boot-jsonb")) | ||||||
|  | 	testImplementation("org.springframework:spring-web") | ||||||
|  | 
 | ||||||
|  | 	testRuntimeOnly("ch.qos.logback:logback-classic") | ||||||
|  | } | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
| 
 | 
 | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import java.io.InputStream; | import java.io.InputStream; | ||||||
| 
 | 
 | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
| 
 | 
 | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import co.elastic.clients.elasticsearch.ElasticsearchClient; | import co.elastic.clients.elasticsearch.ElasticsearchClient; | ||||||
| import org.elasticsearch.client.RestClient; | import org.elasticsearch.client.RestClient; | ||||||
|  | @ -23,9 +23,9 @@ import org.springframework.boot.autoconfigure.AutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; | import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientConfigurations.ElasticsearchClientConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientConfigurations.ElasticsearchClientConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientConfigurations.ElasticsearchTransportConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientConfigurations.ElasticsearchTransportConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientConfigurations.JsonpMapperConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientConfigurations.JsonpMapperConfiguration; | ||||||
| import org.springframework.context.annotation.Import; | import org.springframework.context.annotation.Import; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import co.elastic.clients.elasticsearch.ElasticsearchClient; | import co.elastic.clients.elasticsearch.ElasticsearchClient; | ||||||
| import co.elastic.clients.json.JsonpMapper; | import co.elastic.clients.json.JsonpMapper; | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import java.net.URI; | import java.net.URI; | ||||||
| import java.net.URISyntaxException; | import java.net.URISyntaxException; | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import java.time.Duration; | import java.time.Duration; | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
|  | @ -14,18 +14,18 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import org.elasticsearch.client.RestClientBuilder; | import org.elasticsearch.client.RestClientBuilder; | ||||||
| 
 | 
 | ||||||
| import org.springframework.boot.autoconfigure.AutoConfiguration; | import org.springframework.boot.autoconfigure.AutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientConfigurations.RestClientBuilderConfiguration; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientConfigurations.RestClientConfiguration; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientConfigurations.RestClientSnifferConfiguration; |  | ||||||
| import org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration; | import org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration; | ||||||
| import org.springframework.boot.context.properties.EnableConfigurationProperties; | import org.springframework.boot.context.properties.EnableConfigurationProperties; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientConfigurations.RestClientBuilderConfiguration; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientConfigurations.RestClientConfiguration; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientConfigurations.RestClientSnifferConfiguration; | ||||||
| import org.springframework.context.annotation.Import; | import org.springframework.context.annotation.Import; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import java.net.URI; | import java.net.URI; | ||||||
| import java.time.Duration; | import java.time.Duration; | ||||||
|  | @ -42,10 +42,10 @@ import org.springframework.beans.factory.ObjectProvider; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate; | import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails.Node; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails.Node.Protocol; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchProperties.Restclient.Ssl; |  | ||||||
| import org.springframework.boot.context.properties.PropertyMapper; | import org.springframework.boot.context.properties.PropertyMapper; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails.Node; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails.Node.Protocol; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchProperties.Restclient.Ssl; | ||||||
| import org.springframework.boot.ssl.SslBundle; | import org.springframework.boot.ssl.SslBundle; | ||||||
| import org.springframework.boot.ssl.SslBundles; | import org.springframework.boot.ssl.SslBundles; | ||||||
| import org.springframework.boot.ssl.SslOptions; | import org.springframework.boot.ssl.SslOptions; | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import co.elastic.clients.transport.ElasticsearchTransport; | import co.elastic.clients.transport.ElasticsearchTransport; | ||||||
| import org.elasticsearch.client.RestClient; | import org.elasticsearch.client.RestClient; | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import org.apache.http.client.config.RequestConfig; | import org.apache.http.client.config.RequestConfig; | ||||||
| import org.apache.http.client.config.RequestConfig.Builder; | import org.apache.http.client.config.RequestConfig.Builder; | ||||||
|  | @ -17,4 +17,4 @@ | ||||||
| /** | /** | ||||||
|  * Auto-configuration for Elasticsearch client. |  * Auto-configuration for Elasticsearch client. | ||||||
|  */ |  */ | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
|  | @ -0,0 +1,84 @@ | ||||||
|  | { | ||||||
|  |   "groups": [], | ||||||
|  |   "properties": [ | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.jest.connection-timeout", | ||||||
|  |       "type": "java.time.Duration", | ||||||
|  |       "description": "Connection timeout.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.jest.multi-threaded", | ||||||
|  |       "type": "java.lang.Boolean", | ||||||
|  |       "description": "Whether to enable connection requests from multiple execution threads.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.jest.password", | ||||||
|  |       "type": "java.lang.String", | ||||||
|  |       "description": "Login password.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.jest.proxy.host", | ||||||
|  |       "type": "java.lang.String", | ||||||
|  |       "description": "Proxy host the HTTP client should use.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.jest.proxy.port", | ||||||
|  |       "type": "java.lang.Integer", | ||||||
|  |       "description": "Proxy port the HTTP client should use.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.jest.read-timeout", | ||||||
|  |       "type": "java.time.Duration", | ||||||
|  |       "description": "Read timeout.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.jest.uris", | ||||||
|  |       "type": "java.util.List<java.lang.String>", | ||||||
|  |       "description": "Comma-separated list of the Elasticsearch instances to use.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.jest.username", | ||||||
|  |       "type": "java.lang.String", | ||||||
|  |       "description": "Login username.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.uris", | ||||||
|  |       "defaultValue": [ | ||||||
|  |         "http://localhost:9200" | ||||||
|  |       ] | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "name": "spring.elasticsearch.webclient.max-in-memory-size", | ||||||
|  |       "type": "org.springframework.util.unit.DataSize", | ||||||
|  |       "description": "Limit on the number of bytes that can be buffered whenever the input stream needs to be aggregated.", | ||||||
|  |       "deprecation": { | ||||||
|  |         "level": "error", | ||||||
|  |         "reason": "Reactive Elasticsearch client no longer uses WebClient." | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   ] | ||||||
|  | } | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientAutoConfiguration | ||||||
|  | org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration | ||||||
|  | org.springframework.boot.elasticsearch.autoconfigure.ReactiveElasticsearchClientAutoConfiguration | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import co.elastic.clients.elasticsearch.ElasticsearchClient; | import co.elastic.clients.elasticsearch.ElasticsearchClient; | ||||||
| import co.elastic.clients.json.JsonpMapper; | import co.elastic.clients.json.JsonpMapper; | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import java.time.Duration; | import java.time.Duration; | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
|  | @ -36,9 +36,9 @@ import org.elasticsearch.client.sniff.Sniffer; | ||||||
| import org.junit.jupiter.api.Test; | import org.junit.jupiter.api.Test; | ||||||
| 
 | 
 | ||||||
| import org.springframework.boot.autoconfigure.AutoConfigurations; | import org.springframework.boot.autoconfigure.AutoConfigurations; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails.Node.Protocol; |  | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientConfigurations.PropertiesElasticsearchConnectionDetails; |  | ||||||
| import org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration; | import org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails.Node.Protocol; | ||||||
|  | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientConfigurations.PropertiesElasticsearchConnectionDetails; | ||||||
| import org.springframework.boot.test.context.FilteredClassLoader; | import org.springframework.boot.test.context.FilteredClassLoader; | ||||||
| import org.springframework.boot.test.context.runner.ApplicationContextRunner; | import org.springframework.boot.test.context.runner.ApplicationContextRunner; | ||||||
| import org.springframework.boot.testsupport.classpath.resources.WithPackageResources; | import org.springframework.boot.testsupport.classpath.resources.WithPackageResources; | ||||||
|  | @ -14,7 +14,7 @@ | ||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| package org.springframework.boot.autoconfigure.elasticsearch; | package org.springframework.boot.elasticsearch.autoconfigure; | ||||||
| 
 | 
 | ||||||
| import org.elasticsearch.client.RestClient; | import org.elasticsearch.client.RestClient; | ||||||
| import org.junit.jupiter.api.Test; | import org.junit.jupiter.api.Test; | ||||||
|  | @ -27,7 +27,9 @@ description = "Spring Boot JSON-B" | ||||||
| dependencies { | dependencies { | ||||||
| 	api(project(":spring-boot-project:spring-boot")) | 	api(project(":spring-boot-project:spring-boot")) | ||||||
| 	api("jakarta.json.bind:jakarta.json.bind-api") | 	api("jakarta.json.bind:jakarta.json.bind-api") | ||||||
|  | 	api("org.eclipse:yasson") | ||||||
| 
 | 
 | ||||||
|  | 	optional(project(":spring-boot-project:spring-boot-autoconfigure")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-autoconfigure")) | 	optional(project(":spring-boot-project:spring-boot-autoconfigure")) | ||||||
| 
 | 
 | ||||||
| 	testImplementation(project(":spring-boot-project:spring-boot-test")) | 	testImplementation(project(":spring-boot-project:spring-boot-test")) | ||||||
|  |  | ||||||
|  | @ -22,6 +22,7 @@ description = "Starter for using Elasticsearch search and analytics engine and S | ||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
| 	api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter")) | 	api(project(":spring-boot-project:spring-boot-starters:spring-boot-starter")) | ||||||
|  | 	api(project(":spring-boot-project:spring-boot-elasticsearch")) | ||||||
| 	api(project(":spring-boot-project:spring-boot-tx")) | 	api(project(":spring-boot-project:spring-boot-tx")) | ||||||
| 	api("org.elasticsearch.client:elasticsearch-rest-client") | 	api("org.elasticsearch.client:elasticsearch-rest-client") | ||||||
| 	api("org.springframework.data:spring-data-elasticsearch") | 	api("org.springframework.data:spring-data-elasticsearch") | ||||||
|  |  | ||||||
|  | @ -53,6 +53,7 @@ dependencies { | ||||||
| 	dockerTestRuntimeOnly("io.lettuce:lettuce-core") | 	dockerTestRuntimeOnly("io.lettuce:lettuce-core") | ||||||
| 	dockerTestRuntimeOnly("org.springframework.data:spring-data-redis") | 	dockerTestRuntimeOnly("org.springframework.data:spring-data-redis") | ||||||
| 
 | 
 | ||||||
|  | 	optional(project(":spring-boot-project:spring-boot-elasticsearch")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-flyway")) | 	optional(project(":spring-boot-project:spring-boot-flyway")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-groovy-templates")) | 	optional(project(":spring-boot-project:spring-boot-groovy-templates")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-jackson")) | 	optional(project(":spring-boot-project:spring-boot-jackson")) | ||||||
|  |  | ||||||
|  | @ -2,9 +2,9 @@ | ||||||
| org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchRepositoriesAutoConfiguration | org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchRepositoriesAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration | org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.data.elasticsearch.ReactiveElasticsearchRepositoriesAutoConfiguration | org.springframework.boot.autoconfigure.data.elasticsearch.ReactiveElasticsearchRepositoriesAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration | org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration | org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.elasticsearch.ReactiveElasticsearchClientAutoConfiguration | org.springframework.boot.elasticsearch.autoconfigure.ReactiveElasticsearchClientAutoConfiguration | ||||||
| org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration | org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration | ||||||
| org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration | org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration | ||||||
| optional:org.springframework.boot.jsonb.autoconfigure.JsonbAutoConfiguration | optional:org.springframework.boot.jsonb.autoconfigure.JsonbAutoConfiguration | ||||||
|  |  | ||||||
|  | @ -74,6 +74,7 @@ dependencies { | ||||||
| 	optional(project(":spring-boot-project:spring-boot-amqp")) | 	optional(project(":spring-boot-project:spring-boot-amqp")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-artemis")) | 	optional(project(":spring-boot-project:spring-boot-artemis")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure")) | 	optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure")) | ||||||
|  | 	optional(project(":spring-boot-project:spring-boot-elasticsearch")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-flyway")) | 	optional(project(":spring-boot-project:spring-boot-flyway")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-jdbc")) | 	optional(project(":spring-boot-project:spring-boot-jdbc")) | ||||||
| 	optional(project(":spring-boot-project:spring-boot-liquibase")) | 	optional(project(":spring-boot-project:spring-boot-liquibase")) | ||||||
|  |  | ||||||
|  | @ -27,9 +27,9 @@ import org.testcontainers.junit.jupiter.Testcontainers; | ||||||
| 
 | 
 | ||||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||||
| import org.springframework.boot.autoconfigure.ImportAutoConfiguration; | import org.springframework.boot.autoconfigure.ImportAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchClientAutoConfiguration; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchRestClientAutoConfiguration; | ||||||
| import org.springframework.boot.testcontainers.service.connection.ServiceConnection; | import org.springframework.boot.testcontainers.service.connection.ServiceConnection; | ||||||
| import org.springframework.boot.testsupport.container.ElasticsearchContainer9; | import org.springframework.boot.testsupport.container.ElasticsearchContainer9; | ||||||
| import org.springframework.context.annotation.Configuration; | import org.springframework.context.annotation.Configuration; | ||||||
|  |  | ||||||
|  | @ -28,8 +28,8 @@ import java.util.List; | ||||||
| 
 | 
 | ||||||
| import org.testcontainers.elasticsearch.ElasticsearchContainer; | import org.testcontainers.elasticsearch.ElasticsearchContainer; | ||||||
| 
 | 
 | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails; | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails.Node.Protocol; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails.Node.Protocol; | ||||||
| import org.springframework.boot.ssl.SslBundle; | import org.springframework.boot.ssl.SslBundle; | ||||||
| import org.springframework.boot.ssl.SslStoreBundle; | import org.springframework.boot.ssl.SslStoreBundle; | ||||||
| import org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory; | import org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory; | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ import org.testcontainers.containers.JdbcDatabaseContainer; | ||||||
| import org.testcontainers.containers.PostgreSQLContainer; | import org.testcontainers.containers.PostgreSQLContainer; | ||||||
| import org.testcontainers.elasticsearch.ElasticsearchContainer; | import org.testcontainers.elasticsearch.ElasticsearchContainer; | ||||||
| 
 | 
 | ||||||
| import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchConnectionDetails; | import org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchConnectionDetails; | ||||||
| import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails; | import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails; | ||||||
| import org.springframework.boot.origin.Origin; | import org.springframework.boot.origin.Origin; | ||||||
| import org.springframework.core.annotation.MergedAnnotation; | import org.springframework.core.annotation.MergedAnnotation; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue