Restructure autoconfigure packages

Restructure modules packages so that all auto-configuration is
organized under single top-level autoconfigure package.
This commit is contained in:
Phillip Webb
2025-06-11 16:29:17 -07:00
parent e60af6a8c7
commit 3de1e27b64
499 changed files with 1133 additions and 1464 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.autoconfigure.observation;
package org.springframework.boot.restclient.autoconfigure;
import io.micrometer.observation.ObservationRegistry;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.autoconfigure.observation;
package org.springframework.boot.restclient.autoconfigure;
import io.micrometer.observation.ObservationRegistry;

View File

@@ -1,20 +0,0 @@
/*
* Copyright 2012-2025 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.
*/
/**
* Auto-configuration for RestClient and RestTemplate observation.
*/
package org.springframework.boot.restclient.autoconfigure.observation;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;
import java.util.LinkedHashMap;
import java.util.List;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;
import java.util.LinkedHashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;
import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.beans.factory.ObjectProvider;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.condition.NoneNestedConditions;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.restclient.RestClientCustomizer;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;
import java.util.List;
import java.util.Map;

View File

@@ -17,4 +17,4 @@
/**
* Auto-Configuration for Spring's Blocking HTTP Service Interface Clients.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;

View File

@@ -1,5 +1,5 @@
org.springframework.boot.restclient.autoconfigure.RestClientAutoConfiguration
org.springframework.boot.restclient.autoconfigure.RestClientObservationAutoConfiguration
org.springframework.boot.restclient.autoconfigure.RestTemplateAutoConfiguration
org.springframework.boot.restclient.autoconfigure.observation.RestClientObservationAutoConfiguration
org.springframework.boot.restclient.autoconfigure.observation.RestTemplateObservationAutoConfiguration
org.springframework.boot.restclient.service.autoconfigure.HttpServiceClientAutoConfiguration
org.springframework.boot.restclient.autoconfigure.RestTemplateObservationAutoConfiguration
org.springframework.boot.restclient.autoconfigure.service.HttpServiceClientAutoConfiguration

View File

@@ -29,6 +29,7 @@ import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestClientAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestClientObservationAutoConfiguration;
import org.springframework.boot.restclient.observation.ObservationRestClientCustomizer;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;

View File

@@ -24,6 +24,7 @@ import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestClientAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestClientObservationAutoConfiguration;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.boot.test.system.OutputCaptureExtension;

View File

@@ -30,6 +30,7 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration;
import org.springframework.boot.restclient.RestTemplateBuilder;
import org.springframework.boot.restclient.autoconfigure.RestTemplateAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestTemplateObservationAutoConfiguration;
import org.springframework.boot.restclient.observation.ObservationRestTemplateCustomizer;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;

View File

@@ -25,6 +25,7 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.observation.autoconfigure.ObservationAutoConfiguration;
import org.springframework.boot.restclient.RestTemplateBuilder;
import org.springframework.boot.restclient.autoconfigure.RestTemplateAutoConfiguration;
import org.springframework.boot.restclient.autoconfigure.RestTemplateObservationAutoConfiguration;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.boot.test.system.OutputCaptureExtension;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;
import java.time.Duration;
import java.util.List;
@@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.http.client.HttpRedirects;
import org.springframework.boot.http.client.autoconfigure.AbstractHttpRequestFactoryProperties.Factory;
import org.springframework.boot.restclient.service.autoconfigure.HttpClientServiceProperties.Group;
import org.springframework.boot.restclient.autoconfigure.service.HttpClientServiceProperties.Group;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.mock.env.MockEnvironment;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.restclient.service.autoconfigure;
package org.springframework.boot.restclient.autoconfigure.service;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;