mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 10:19:03 +00:00
Simplify HTTP client configuration properties by sharing common settings for both blocking and reactive clients. The `ClientHttpRequestFactorySettings` and `ClientHttpConnectorSettings` have been merged to a single `HttpClientSettings` class. Properties to configure common settings are available under: `spring.http.clients` Blocking and reactive settings have been moved to `spring.http.clients.blocking` and `spring.http.clients.reactive`. With currently only the factory/connector being configurable. HTTP Service Client properties have also been rationalized under a `spring.http.serviceclient.<group-name>`. Support for properties that apply to all service clients and all Rest/Web Clients have been removed. Support for `ApiVerionInserter` beans has also been removed in favor of configuring the service group or builders directly. Closes gh-47398
47 lines
1.7 KiB
Groovy
47 lines
1.7 KiB
Groovy
/*
|
|
* 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.deployed"
|
|
id "org.springframework.boot.optional-dependencies"
|
|
}
|
|
|
|
description = "Spring Boot WebClient"
|
|
|
|
dependencies {
|
|
api(project(":core:spring-boot"))
|
|
api(project(":module:spring-boot-http-client"))
|
|
api("org.springframework:spring-webflux")
|
|
|
|
implementation(project(":module:spring-boot-http-codec"))
|
|
|
|
optional(project(":core:spring-boot-autoconfigure"))
|
|
optional(project(":module:spring-boot-micrometer-metrics"))
|
|
optional(project(":module:spring-boot-reactor-netty"))
|
|
optional("org.apache.httpcomponents.client5:httpclient5")
|
|
optional("org.apache.httpcomponents.core5:httpcore5-reactive")
|
|
optional("org.eclipse.jetty:jetty-reactive-httpclient")
|
|
|
|
testImplementation(project(":core:spring-boot-test"))
|
|
testImplementation(project(":module:spring-boot-tomcat"))
|
|
testImplementation(project(":test-support:spring-boot-test-support"))
|
|
testImplementation("io.micrometer:micrometer-observation-test")
|
|
|
|
testRuntimeOnly("ch.qos.logback:logback-classic")
|
|
}
|