From ae1ac8b005a57d2fbb5e90cb3b340e24b1ca15a9 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Wed, 22 Jan 2025 18:41:55 +0100 Subject: [PATCH 01/23] Handle null in LoadBalancer Request and Response (#1454) * Handle null lbRequest and lbResponse values. Signed-off-by: Olga Maciaszek-Sharma * Verify for null request on start. Signed-off-by: Olga Maciaszek-Sharma --------- Signed-off-by: Olga Maciaszek-Sharma --- .../loadbalancer/stats/LoadBalancerTags.java | 26 +++++++++++++------ .../MicrometerStatsLoadBalancerLifecycle.java | 16 +++++++++--- ...ometerStatsLoadBalancerLifecycleTests.java | 21 +++++++++++++++ 3 files changed, 51 insertions(+), 12 deletions(-) diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/LoadBalancerTags.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/LoadBalancerTags.java index 42afc64f..9683fb73 100644 --- a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/LoadBalancerTags.java +++ b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/LoadBalancerTags.java @@ -27,8 +27,10 @@ import io.micrometer.core.instrument.Tags; import org.springframework.cloud.client.ServiceInstance; import org.springframework.cloud.client.loadbalancer.CompletionContext; import org.springframework.cloud.client.loadbalancer.LoadBalancerProperties; +import org.springframework.cloud.client.loadbalancer.Request; import org.springframework.cloud.client.loadbalancer.RequestData; import org.springframework.cloud.client.loadbalancer.RequestDataContext; +import org.springframework.cloud.client.loadbalancer.Response; import org.springframework.cloud.client.loadbalancer.ResponseData; import org.springframework.util.StringUtils; @@ -55,7 +57,11 @@ class LoadBalancerTags { } Iterable buildSuccessRequestTags(CompletionContext completionContext) { - ServiceInstance serviceInstance = completionContext.getLoadBalancerResponse().getServer(); + Response lbResponse = completionContext.getLoadBalancerResponse(); + if (lbResponse == null) { + return Tags.empty(); + } + ServiceInstance serviceInstance = lbResponse.getServer(); Tags tags = Tags.of(buildServiceInstanceTags(serviceInstance)); Object clientResponse = completionContext.getClientResponse(); if (clientResponse instanceof ResponseData responseData) { @@ -100,9 +106,9 @@ class LoadBalancerTags { } Iterable buildDiscardedRequestTags(CompletionContext completionContext) { - if (completionContext.getLoadBalancerRequest().getContext() instanceof RequestDataContext) { - RequestData requestData = ((RequestDataContext) completionContext.getLoadBalancerRequest().getContext()) - .getClientRequest(); + Request lbRequest = completionContext.getLoadBalancerRequest(); + if (lbRequest != null && lbRequest.getContext() instanceof RequestDataContext requestDataContext) { + RequestData requestData = requestDataContext.getClientRequest(); if (requestData != null) { return Tags.of(valueOrUnknown("method", requestData.getHttpMethod()), valueOrUnknown("uri", getPath(requestData)), valueOrUnknown("serviceId", getHost(requestData))); @@ -118,11 +124,15 @@ class LoadBalancerTags { } Iterable buildFailedRequestTags(CompletionContext completionContext) { - ServiceInstance serviceInstance = completionContext.getLoadBalancerResponse().getServer(); + Response lbResponse = completionContext.getLoadBalancerResponse(); + if (lbResponse == null) { + return Tags.empty(); + } + ServiceInstance serviceInstance = lbResponse.getServer(); Tags tags = Tags.of(buildServiceInstanceTags(serviceInstance)).and(exception(completionContext.getThrowable())); - if (completionContext.getLoadBalancerRequest().getContext() instanceof RequestDataContext) { - RequestData requestData = ((RequestDataContext) completionContext.getLoadBalancerRequest().getContext()) - .getClientRequest(); + Request lbRequest = completionContext.getLoadBalancerRequest(); + if (lbRequest != null && lbRequest.getContext() instanceof RequestDataContext requestDataContext) { + RequestData requestData = requestDataContext.getClientRequest(); if (requestData != null) { return tags.and(Tags.of(valueOrUnknown("method", requestData.getHttpMethod()), valueOrUnknown("uri", getPath(requestData)))); diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycle.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycle.java index 1d77caea..7b48e9e5 100644 --- a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycle.java +++ b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycle.java @@ -85,10 +85,10 @@ public class MicrometerStatsLoadBalancerLifecycle implements LoadBalancerLifecyc @Override public void onStartRequest(Request request, Response lbResponse) { - if (request.getContext() instanceof TimedRequestContext) { + if (request != null && request.getContext() instanceof TimedRequestContext) { ((TimedRequestContext) request.getContext()).setRequestStartTime(System.nanoTime()); } - if (!lbResponse.hasServer()) { + if (lbResponse == null || !lbResponse.hasServer()) { return; } ServiceInstance serviceInstance = lbResponse.getServer(); @@ -104,7 +104,11 @@ public class MicrometerStatsLoadBalancerLifecycle implements LoadBalancerLifecyc @Override public void onComplete(CompletionContext completionContext) { - ServiceInstance serviceInstance = completionContext.getLoadBalancerResponse().getServer(); + ServiceInstance serviceInstance = null; + Response loadBalancerResponse = completionContext.getLoadBalancerResponse(); + if (loadBalancerResponse != null) { + serviceInstance = loadBalancerResponse.getServer(); + } LoadBalancerProperties properties = serviceInstance != null ? loadBalancerFactory.getProperties(serviceInstance.getServiceId()) : loadBalancerFactory.getProperties(null); @@ -121,7 +125,11 @@ public class MicrometerStatsLoadBalancerLifecycle implements LoadBalancerLifecyc if (activeRequestsCounter != null) { activeRequestsCounter.decrementAndGet(); } - Object loadBalancerRequestContext = completionContext.getLoadBalancerRequest().getContext(); + Request lbRequest = completionContext.getLoadBalancerRequest(); + if (lbRequest == null) { + return; + } + Object loadBalancerRequestContext = lbRequest.getContext(); if (requestHasBeenTimed(loadBalancerRequestContext)) { if (CompletionContext.Status.FAILED.equals(completionContext.status())) { Timer.builder("loadbalancer.requests.failed") diff --git a/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycleTests.java b/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycleTests.java index 27d360dd..3be772cc 100644 --- a/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycleTests.java +++ b/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycleTests.java @@ -47,6 +47,7 @@ import org.springframework.http.HttpStatus; import org.springframework.util.MultiValueMapAdapter; import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatCode; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static org.springframework.cloud.loadbalancer.stats.LoadBalancerTags.UNKNOWN; @@ -243,6 +244,26 @@ class MicrometerStatsLoadBalancerLifecycleTests { Tag.of("serviceInstance.port", "0"), Tag.of("status", "200"), Tag.of("uri", UNKNOWN)); } + @Test + void shouldHandleNullLoadBalancerResponse() { + RequestData requestData = new RequestData(HttpMethod.GET, URI.create("http://test.org/test"), new HttpHeaders(), + new HttpHeaders(), new HashMap<>()); + Request lbRequest = new DefaultRequest<>(new RequestDataContext(requestData)); + assertThatCode(() -> { + statsLifecycle.onStartRequest(lbRequest, null); + statsLifecycle.onComplete(new CompletionContext<>(CompletionContext.Status.DISCARD, lbRequest, null)); + }).doesNotThrowAnyException(); + } + + @Test + void shouldHandleNullLoadBalancerRequest() { + Response lbResponse = new EmptyResponse(); + assertThatCode(() -> { + statsLifecycle.onStartRequest(null, lbResponse); + statsLifecycle.onComplete(new CompletionContext<>(CompletionContext.Status.DISCARD, null, lbResponse)); + }).doesNotThrowAnyException(); + } + private static class StatsTestContext { } From 2c0ac96ed10553448ea772a3d281d519c459fe07 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Wed, 22 Jan 2025 18:44:33 +0100 Subject: [PATCH 02/23] Update license dates. Signed-off-by: Olga Maciaszek-Sharma --- .../cloud/loadbalancer/stats/LoadBalancerTags.java | 2 +- .../stats/MicrometerStatsLoadBalancerLifecycle.java | 2 +- .../stats/MicrometerStatsLoadBalancerLifecycleTests.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/LoadBalancerTags.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/LoadBalancerTags.java index 9683fb73..7404573d 100644 --- a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/LoadBalancerTags.java +++ b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/LoadBalancerTags.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2024 the original author or authors. + * 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. diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycle.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycle.java index 7b48e9e5..18fcd0d0 100644 --- a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycle.java +++ b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycle.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2024 the original author or authors. + * 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. diff --git a/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycleTests.java b/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycleTests.java index 3be772cc..c5d7bc5c 100644 --- a/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycleTests.java +++ b/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/stats/MicrometerStatsLoadBalancerLifecycleTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2024 the original author or authors. + * 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. From 94f22fdd184751028369a443e8ad2d45915e1381 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Wed, 22 Jan 2025 16:44:46 -0500 Subject: [PATCH 03/23] Fixing documentation links Signed-off-by: Ryan Baxter --- docs/modules/ROOT/pages/spring-cloud-circuitbreaker.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/spring-cloud-circuitbreaker.adoc b/docs/modules/ROOT/pages/spring-cloud-circuitbreaker.adoc index 7cf6e3cb..0c44db69 100755 --- a/docs/modules/ROOT/pages/spring-cloud-circuitbreaker.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-circuitbreaker.adoc @@ -85,9 +85,9 @@ The `Customizer` interface has a single method (called `customize`) that takes t For detailed information on how to customize a given implementation see the following documentation: -* link:../../../../spring-cloud-circuitbreaker/current/reference/html/spring-cloud-circuitbreaker.html#configuring-resilience4j-circuit-breakers[Resilience4J] +* link:../../../../spring-cloud-circuitbreaker/reference/spring-cloud-circuitbreaker-resilience4j.html[Resilience4J] * link:https://github.com/alibaba/spring-cloud-alibaba/blob/master/spring-cloud-alibaba-docs/src/main/asciidoc/circuitbreaker-sentinel.adoc#circuit-breaker-spring-cloud-circuit-breaker-with-sentinel--configuring-sentinel-circuit-breakers[Sentinel] -* link:../../../../../spring-cloud-circuitbreaker/docs/current/reference/html/spring-cloud-circuitbreaker.html#configuring-spring-retry-circuit-breakers[Spring Retry] +* link:../../../../../spring-cloud-circuitbreaker/reference/spring-cloud-circuitbreaker-spring-retry.html[Spring Retry] Some `CircuitBreaker` implementations such as `Resilience4JCircuitBreaker` call `customize` method every time `CircuitBreaker#run` is called. It can be inefficient. In that case, you can use `CircuitBreaker#once` method. It is useful where calling `customize` many times doesn't make sense, From 72294c24fba885542dfa97fa6585057df6cde181 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Fri, 24 Jan 2025 00:18:21 +0800 Subject: [PATCH 04/23] Deprecate unused EnvironmentUtils (#1456) EnvironmentUtils is not used in all spring-cloud projects, see https://github.com/search?q=org%3Aspring-cloud%20getSubProperties&type=code Signed-off-by: Yanming Zhou --- .../java/org/springframework/cloud/env/EnvironmentUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/env/EnvironmentUtils.java b/spring-cloud-context/src/main/java/org/springframework/cloud/env/EnvironmentUtils.java index c6943476..d2b0b3a6 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/env/EnvironmentUtils.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/env/EnvironmentUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * 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. @@ -26,6 +26,7 @@ import org.springframework.core.env.Environment; /** * @author Spencer Gibb */ +@Deprecated(since = "4.3.0", forRemoval = true) public final class EnvironmentUtils { private EnvironmentUtils() { From 6c352b8dee24da74909600c36295ff7b79ebae94 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Fri, 24 Jan 2025 05:46:20 +0800 Subject: [PATCH 05/23] Move field ContextRefresher.REFRESH_ARGS_PROPERTY_SOURCE down to LegacyContextRefresher (#1450) It's specific to LegacyContextRefresher. Signed-off-by: Yanming Zhou --- .../cloud/context/refresh/ConfigDataContextRefresher.java | 3 --- .../cloud/context/refresh/ContextRefresher.java | 2 -- .../cloud/context/refresh/LegacyContextRefresher.java | 2 ++ 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ConfigDataContextRefresher.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ConfigDataContextRefresher.java index 4a5d813e..aa61373d 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ConfigDataContextRefresher.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ConfigDataContextRefresher.java @@ -92,9 +92,6 @@ public class ConfigDataContextRefresher extends ContextRefresher postProcessor.postProcessEnvironment(environment, application); } - if (environment.getPropertySources().contains(REFRESH_ARGS_PROPERTY_SOURCE)) { - environment.getPropertySources().remove(REFRESH_ARGS_PROPERTY_SOURCE); - } MutablePropertySources target = getContext().getEnvironment().getPropertySources(); String targetName = null; for (PropertySource source : environment.getPropertySources()) { diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java index 4982b980..54991a87 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java @@ -51,8 +51,6 @@ public abstract class ContextRefresher { protected final Log logger = LogFactory.getLog(getClass()); - protected static final String REFRESH_ARGS_PROPERTY_SOURCE = "refreshArgs"; - protected static final String[] DEFAULT_PROPERTY_SOURCES = new String[] { // order matters, if cli args aren't first, things get messy CommandLinePropertySource.COMMAND_LINE_PROPERTY_SOURCE_NAME, "defaultProperties" }; diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java index 5a30aadf..fe5fa4b9 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java @@ -41,6 +41,8 @@ import static org.springframework.cloud.util.PropertyUtils.BOOTSTRAP_ENABLED_PRO */ public class LegacyContextRefresher extends ContextRefresher { + private static final String REFRESH_ARGS_PROPERTY_SOURCE = "refreshArgs"; + @Deprecated public LegacyContextRefresher(ConfigurableApplicationContext context, RefreshScope scope) { super(context, scope); From ee490fe7c8cd4a3d7cc2b0b4bda7cf2becdf0ec8 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Fri, 24 Jan 2025 05:46:20 +0800 Subject: [PATCH 06/23] Move field ContextRefresher.REFRESH_ARGS_PROPERTY_SOURCE down to LegacyContextRefresher (#1450) It's specific to LegacyContextRefresher. Signed-off-by: Yanming Zhou --- .../cloud/context/refresh/ConfigDataContextRefresher.java | 3 --- .../cloud/context/refresh/ContextRefresher.java | 2 -- .../cloud/context/refresh/LegacyContextRefresher.java | 2 ++ 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ConfigDataContextRefresher.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ConfigDataContextRefresher.java index 4a5d813e..aa61373d 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ConfigDataContextRefresher.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ConfigDataContextRefresher.java @@ -92,9 +92,6 @@ public class ConfigDataContextRefresher extends ContextRefresher postProcessor.postProcessEnvironment(environment, application); } - if (environment.getPropertySources().contains(REFRESH_ARGS_PROPERTY_SOURCE)) { - environment.getPropertySources().remove(REFRESH_ARGS_PROPERTY_SOURCE); - } MutablePropertySources target = getContext().getEnvironment().getPropertySources(); String targetName = null; for (PropertySource source : environment.getPropertySources()) { diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java index 4982b980..54991a87 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/ContextRefresher.java @@ -51,8 +51,6 @@ public abstract class ContextRefresher { protected final Log logger = LogFactory.getLog(getClass()); - protected static final String REFRESH_ARGS_PROPERTY_SOURCE = "refreshArgs"; - protected static final String[] DEFAULT_PROPERTY_SOURCES = new String[] { // order matters, if cli args aren't first, things get messy CommandLinePropertySource.COMMAND_LINE_PROPERTY_SOURCE_NAME, "defaultProperties" }; diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java index 5a30aadf..fe5fa4b9 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/refresh/LegacyContextRefresher.java @@ -41,6 +41,8 @@ import static org.springframework.cloud.util.PropertyUtils.BOOTSTRAP_ENABLED_PRO */ public class LegacyContextRefresher extends ContextRefresher { + private static final String REFRESH_ARGS_PROPERTY_SOURCE = "refreshArgs"; + @Deprecated public LegacyContextRefresher(ConfigurableApplicationContext context, RefreshScope scope) { super(context, scope); From b4dac301a0b376af99c26c13918affe202da4704 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Fri, 24 Jan 2025 23:55:10 +0800 Subject: [PATCH 07/23] Support configuring bean names as well as bean types for extra-refreshable and never-refreshable (#1457) Thanks to https://github.com/spring-projects/spring-boot/issues/22403, applications could define a bean in addition to an auto-configured bean of the same type, then we should support configuring bean names for fine-grained control. Signed-off-by: Yanming Zhou --- docs/modules/ROOT/partials/_configprops.adoc | 4 +-- .../RefreshAutoConfiguration.java | 6 +++- .../ConfigurationPropertiesRebinder.java | 5 ++-- ...itional-spring-configuration-metadata.json | 4 +-- .../RefreshAutoConfigurationTests.java | 28 +++++++++++++++++-- 5 files changed, 37 insertions(+), 10 deletions(-) diff --git a/docs/modules/ROOT/partials/_configprops.adoc b/docs/modules/ROOT/partials/_configprops.adoc index 45941b98..e2abc13a 100644 --- a/docs/modules/ROOT/partials/_configprops.adoc +++ b/docs/modules/ROOT/partials/_configprops.adoc @@ -76,8 +76,8 @@ |spring.cloud.loadbalancer.zone | | Spring Cloud LoadBalancer zone. |spring.cloud.refresh.additional-property-sources-to-retain | | Additional property sources to retain during a refresh. Typically only system property sources are retained. This property allows property sources, such as property sources created by EnvironmentPostProcessors to be retained as well. |spring.cloud.refresh.enabled | `+++true+++` | Enables autoconfiguration for the refresh scope and associated features. -|spring.cloud.refresh.extra-refreshable | `+++true+++` | Additional class names for beans to post process into refresh scope. -|spring.cloud.refresh.never-refreshable | `+++true+++` | Comma separated list of class names for beans to never be refreshed or rebound. +|spring.cloud.refresh.extra-refreshable | `+++true+++` | Additional bean names or class names for beans to post process into refresh scope. +|spring.cloud.refresh.never-refreshable | `+++true+++` | Comma separated list of bean names or class names for beans to never be refreshed or rebound. |spring.cloud.refresh.on-restart.enabled | `+++true+++` | Enable refreshing context on start. |spring.cloud.service-registry.auto-registration.enabled | `+++true+++` | Whether service auto-registration is enabled. Defaults to true. |spring.cloud.service-registry.auto-registration.fail-fast | `+++false+++` | Whether startup fails if there is no AutoServiceRegistration. Defaults to false. diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshAutoConfiguration.java b/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshAutoConfiguration.java index 57e26fc0..6f801218 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshAutoConfiguration.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshAutoConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * 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. @@ -63,6 +63,7 @@ import org.springframework.util.StringUtils; * @author Dave Syer * @author Venil Noronha * @author Olga Maciaszek-Sharma + * @author Yanming Zhou */ @Configuration(proxyBeanMethods = false) @ConditionalOnClass(RefreshScope.class) @@ -209,6 +210,9 @@ public class RefreshAutoConfiguration { // Already refresh scoped return false; } + if (this.refreshables.contains(name)) { + return true; + } String type = definition.getBeanClassName(); if (!StringUtils.hasText(type) && registry instanceof BeanFactory) { Class cls = ((BeanFactory) registry).getType(name); diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java index ca2e9d79..a2359c74 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * 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. @@ -47,6 +47,7 @@ import org.springframework.util.StringUtils; * the @ConfigurationProperties bean. * * @author Dave Syer + * @author Yanming Zhou * @see RefreshScope for a deeper and optionally more focused refresh of bean components. * */ @@ -131,7 +132,7 @@ public class ConfigurationPropertiesRebinder // TODO: determine a more general approach to fix this. // see // https://github.com/spring-cloud/spring-cloud-commons/issues/571 - if (getNeverRefreshable().contains(bean.getClass().getName())) { + if (getNeverRefreshable().contains(bean.getClass().getName()) || getNeverRefreshable().contains(name)) { return false; // ignore } appContext.getAutowireCapableBeanFactory().destroyBean(bean); diff --git a/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 448ce8fe..ff535a76 100644 --- a/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -39,13 +39,13 @@ { "name": "spring.cloud.refresh.extra-refreshable", "type": "java.util.Set", - "description": "Additional class names for beans to post process into refresh scope.", + "description": "Additional bean names or class names for beans to post process into refresh scope.", "defaultValue": true }, { "name": "spring.cloud.refresh.never-refreshable", "type": "java.lang.String", - "description": "Comma separated list of class names for beans to never be refreshed or rebound.", + "description": "Comma separated list of bean names or class names for beans to never be refreshed or rebound.", "defaultValue": true }, { diff --git a/spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/RefreshAutoConfigurationTests.java b/spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/RefreshAutoConfigurationTests.java index 03d30c1f..4786f244 100644 --- a/spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/RefreshAutoConfigurationTests.java +++ b/spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/RefreshAutoConfigurationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * 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. @@ -41,6 +41,7 @@ import static org.assertj.core.api.BDDAssertions.then; /** * @author Dave Syer * @author Olga Maciaszek-Sharma + * @author Yanming Zhou */ @ExtendWith(OutputCaptureExtension.class) class RefreshAutoConfigurationTests { @@ -79,7 +80,7 @@ class RefreshAutoConfigurationTests { } @Test - public void extraRefreshables() { + public void extraRefreshableWithClassName() { try (ConfigurableApplicationContext context = getApplicationContext(WebApplicationType.NONE, Config.class, "sealedconfig.foo=bar", "spring.cloud.refresh.extra-refreshable:" + SealedConfigProps.class.getName())) { @@ -89,7 +90,17 @@ class RefreshAutoConfigurationTests { } @Test - void neverRefreshable() { + public void extraRefreshableWithBeanName() { + String beanName = "sealedconfig-" + SealedConfigProps.class.getName(); + try (ConfigurableApplicationContext context = getApplicationContext(WebApplicationType.NONE, Config.class, + "sealedconfig.foo=bar", "spring.cloud.refresh.extra-refreshable:" + beanName)) { + context.getBean(SealedConfigProps.class); + context.getBean(ContextRefresher.class).refresh(); + } + } + + @Test + void neverRefreshableWithClassName() { try (ConfigurableApplicationContext context = getApplicationContext(WebApplicationType.NONE, Config.class, "countingconfig.foo=bar", "spring.cloud.refresh.never-refreshable:" + CountingConfigProps.class.getName())) { @@ -99,6 +110,17 @@ class RefreshAutoConfigurationTests { } } + @Test + void neverRefreshableWithBeanName() { + String beanName = "countingconfig-" + CountingConfigProps.class.getName(); + try (ConfigurableApplicationContext context = getApplicationContext(WebApplicationType.NONE, Config.class, + "countingconfig.foo=bar", "spring.cloud.refresh.never-refreshable:" + beanName)) { + CountingConfigProps configProps = context.getBean(CountingConfigProps.class); + context.getBean(ContextRefresher.class).refresh(); + assertThat(configProps.count).as("config props was rebound when it should not have been").hasValue(1); + } + } + @Test void refreshScopeLifecylePresentByDefault() { new ApplicationContextRunner().withConfiguration(AutoConfigurations.of(RefreshAutoConfiguration.class)) From bff2c95fe1fc6c49c3e848362b8036c8b9e00da2 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Fri, 24 Jan 2025 23:55:10 +0800 Subject: [PATCH 08/23] Support configuring bean names as well as bean types for extra-refreshable and never-refreshable (#1457) Thanks to https://github.com/spring-projects/spring-boot/issues/22403, applications could define a bean in addition to an auto-configured bean of the same type, then we should support configuring bean names for fine-grained control. Signed-off-by: Yanming Zhou --- docs/modules/ROOT/partials/_configprops.adoc | 4 +-- .../RefreshAutoConfiguration.java | 6 +++- .../ConfigurationPropertiesRebinder.java | 5 ++-- ...itional-spring-configuration-metadata.json | 4 +-- .../RefreshAutoConfigurationTests.java | 28 +++++++++++++++++-- 5 files changed, 37 insertions(+), 10 deletions(-) diff --git a/docs/modules/ROOT/partials/_configprops.adoc b/docs/modules/ROOT/partials/_configprops.adoc index 7d261e79..d3c42cdc 100644 --- a/docs/modules/ROOT/partials/_configprops.adoc +++ b/docs/modules/ROOT/partials/_configprops.adoc @@ -76,8 +76,8 @@ |spring.cloud.loadbalancer.zone | | Spring Cloud LoadBalancer zone. |spring.cloud.refresh.additional-property-sources-to-retain | | Additional property sources to retain during a refresh. Typically only system property sources are retained. This property allows property sources, such as property sources created by EnvironmentPostProcessors to be retained as well. |spring.cloud.refresh.enabled | `+++true+++` | Enables autoconfiguration for the refresh scope and associated features. -|spring.cloud.refresh.extra-refreshable | `+++true+++` | Additional class names for beans to post process into refresh scope. -|spring.cloud.refresh.never-refreshable | `+++true+++` | Comma separated list of class names for beans to never be refreshed or rebound. +|spring.cloud.refresh.extra-refreshable | `+++true+++` | Additional bean names or class names for beans to post process into refresh scope. +|spring.cloud.refresh.never-refreshable | `+++true+++` | Comma separated list of bean names or class names for beans to never be refreshed or rebound. |spring.cloud.refresh.on-restart.enabled | `+++true+++` | Enable refreshing context on start. |spring.cloud.service-registry.auto-registration.enabled | `+++true+++` | Whether service auto-registration is enabled. Defaults to true. |spring.cloud.service-registry.auto-registration.fail-fast | `+++false+++` | Whether startup fails if there is no AutoServiceRegistration. Defaults to false. diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshAutoConfiguration.java b/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshAutoConfiguration.java index 57e26fc0..6f801218 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshAutoConfiguration.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/RefreshAutoConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * 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. @@ -63,6 +63,7 @@ import org.springframework.util.StringUtils; * @author Dave Syer * @author Venil Noronha * @author Olga Maciaszek-Sharma + * @author Yanming Zhou */ @Configuration(proxyBeanMethods = false) @ConditionalOnClass(RefreshScope.class) @@ -209,6 +210,9 @@ public class RefreshAutoConfiguration { // Already refresh scoped return false; } + if (this.refreshables.contains(name)) { + return true; + } String type = definition.getBeanClassName(); if (!StringUtils.hasText(type) && registry instanceof BeanFactory) { Class cls = ((BeanFactory) registry).getType(name); diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java index ca2e9d79..a2359c74 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * 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. @@ -47,6 +47,7 @@ import org.springframework.util.StringUtils; * the @ConfigurationProperties bean. * * @author Dave Syer + * @author Yanming Zhou * @see RefreshScope for a deeper and optionally more focused refresh of bean components. * */ @@ -131,7 +132,7 @@ public class ConfigurationPropertiesRebinder // TODO: determine a more general approach to fix this. // see // https://github.com/spring-cloud/spring-cloud-commons/issues/571 - if (getNeverRefreshable().contains(bean.getClass().getName())) { + if (getNeverRefreshable().contains(bean.getClass().getName()) || getNeverRefreshable().contains(name)) { return false; // ignore } appContext.getAutowireCapableBeanFactory().destroyBean(bean); diff --git a/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 448ce8fe..ff535a76 100644 --- a/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -39,13 +39,13 @@ { "name": "spring.cloud.refresh.extra-refreshable", "type": "java.util.Set", - "description": "Additional class names for beans to post process into refresh scope.", + "description": "Additional bean names or class names for beans to post process into refresh scope.", "defaultValue": true }, { "name": "spring.cloud.refresh.never-refreshable", "type": "java.lang.String", - "description": "Comma separated list of class names for beans to never be refreshed or rebound.", + "description": "Comma separated list of bean names or class names for beans to never be refreshed or rebound.", "defaultValue": true }, { diff --git a/spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/RefreshAutoConfigurationTests.java b/spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/RefreshAutoConfigurationTests.java index 03d30c1f..4786f244 100644 --- a/spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/RefreshAutoConfigurationTests.java +++ b/spring-cloud-context/src/test/java/org/springframework/cloud/autoconfigure/RefreshAutoConfigurationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * 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. @@ -41,6 +41,7 @@ import static org.assertj.core.api.BDDAssertions.then; /** * @author Dave Syer * @author Olga Maciaszek-Sharma + * @author Yanming Zhou */ @ExtendWith(OutputCaptureExtension.class) class RefreshAutoConfigurationTests { @@ -79,7 +80,7 @@ class RefreshAutoConfigurationTests { } @Test - public void extraRefreshables() { + public void extraRefreshableWithClassName() { try (ConfigurableApplicationContext context = getApplicationContext(WebApplicationType.NONE, Config.class, "sealedconfig.foo=bar", "spring.cloud.refresh.extra-refreshable:" + SealedConfigProps.class.getName())) { @@ -89,7 +90,17 @@ class RefreshAutoConfigurationTests { } @Test - void neverRefreshable() { + public void extraRefreshableWithBeanName() { + String beanName = "sealedconfig-" + SealedConfigProps.class.getName(); + try (ConfigurableApplicationContext context = getApplicationContext(WebApplicationType.NONE, Config.class, + "sealedconfig.foo=bar", "spring.cloud.refresh.extra-refreshable:" + beanName)) { + context.getBean(SealedConfigProps.class); + context.getBean(ContextRefresher.class).refresh(); + } + } + + @Test + void neverRefreshableWithClassName() { try (ConfigurableApplicationContext context = getApplicationContext(WebApplicationType.NONE, Config.class, "countingconfig.foo=bar", "spring.cloud.refresh.never-refreshable:" + CountingConfigProps.class.getName())) { @@ -99,6 +110,17 @@ class RefreshAutoConfigurationTests { } } + @Test + void neverRefreshableWithBeanName() { + String beanName = "countingconfig-" + CountingConfigProps.class.getName(); + try (ConfigurableApplicationContext context = getApplicationContext(WebApplicationType.NONE, Config.class, + "countingconfig.foo=bar", "spring.cloud.refresh.never-refreshable:" + beanName)) { + CountingConfigProps configProps = context.getBean(CountingConfigProps.class); + context.getBean(ContextRefresher.class).refresh(); + assertThat(configProps.count).as("config props was rebound when it should not have been").hasValue(1); + } + } + @Test void refreshScopeLifecylePresentByDefault() { new ApplicationContextRunner().withConfiguration(AutoConfigurations.of(RefreshAutoConfiguration.class)) From 21e6811f4570c804e8f93ced677adb6438dba147 Mon Sep 17 00:00:00 2001 From: spring-builds Date: Thu, 30 Jan 2025 03:10:25 +0000 Subject: [PATCH 09/23] Update SNAPSHOT to 4.3.0-M1 --- docs/pom.xml | 2 +- pom.xml | 4 ++-- spring-cloud-commons-dependencies/pom.xml | 4 ++-- spring-cloud-commons/pom.xml | 2 +- spring-cloud-context-integration-tests/pom.xml | 2 +- spring-cloud-context-webflux-integration-tests/pom.xml | 2 +- spring-cloud-context/pom.xml | 2 +- spring-cloud-loadbalancer/pom.xml | 2 +- spring-cloud-starter-bootstrap/pom.xml | 2 +- spring-cloud-starter-loadbalancer/pom.xml | 2 +- spring-cloud-starter/pom.xml | 2 +- spring-cloud-test-support/pom.xml | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/pom.xml b/docs/pom.xml index 333bf8e9..deb7dd54 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -8,7 +8,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 jar Spring Cloud Commons Docs diff --git a/pom.xml b/pom.xml index 162991b7..5dadb37c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 pom Spring Cloud Commons Parent Spring Cloud Commons Parent @@ -13,7 +13,7 @@ org.springframework.cloud spring-cloud-build - 4.3.0-SNAPSHOT + 4.3.0-M1 diff --git a/spring-cloud-commons-dependencies/pom.xml b/spring-cloud-commons-dependencies/pom.xml index 80b4971e..fcabc06b 100644 --- a/spring-cloud-commons-dependencies/pom.xml +++ b/spring-cloud-commons-dependencies/pom.xml @@ -6,11 +6,11 @@ spring-cloud-dependencies-parent org.springframework.cloud - 4.3.0-SNAPSHOT + 4.3.0-M1 spring-cloud-commons-dependencies - 4.3.0-SNAPSHOT + 4.3.0-M1 pom spring-cloud-commons-dependencies Spring Cloud Commons Dependencies diff --git a/spring-cloud-commons/pom.xml b/spring-cloud-commons/pom.xml index d246f36f..38a86b4d 100644 --- a/spring-cloud-commons/pom.xml +++ b/spring-cloud-commons/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 .. spring-cloud-commons diff --git a/spring-cloud-context-integration-tests/pom.xml b/spring-cloud-context-integration-tests/pom.xml index b316f1b2..88eba06f 100644 --- a/spring-cloud-context-integration-tests/pom.xml +++ b/spring-cloud-context-integration-tests/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 .. spring-cloud-context-integration-tests diff --git a/spring-cloud-context-webflux-integration-tests/pom.xml b/spring-cloud-context-webflux-integration-tests/pom.xml index 3a181468..e8a9b902 100644 --- a/spring-cloud-context-webflux-integration-tests/pom.xml +++ b/spring-cloud-context-webflux-integration-tests/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 .. spring-cloud-context-webflux-integration-tests diff --git a/spring-cloud-context/pom.xml b/spring-cloud-context/pom.xml index 02277300..3f025f33 100644 --- a/spring-cloud-context/pom.xml +++ b/spring-cloud-context/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 .. spring-cloud-context diff --git a/spring-cloud-loadbalancer/pom.xml b/spring-cloud-loadbalancer/pom.xml index d05d4b4a..954e88ee 100644 --- a/spring-cloud-loadbalancer/pom.xml +++ b/spring-cloud-loadbalancer/pom.xml @@ -6,7 +6,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 .. spring-cloud-loadbalancer diff --git a/spring-cloud-starter-bootstrap/pom.xml b/spring-cloud-starter-bootstrap/pom.xml index 3749612b..1155359a 100644 --- a/spring-cloud-starter-bootstrap/pom.xml +++ b/spring-cloud-starter-bootstrap/pom.xml @@ -5,7 +5,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 .. jar diff --git a/spring-cloud-starter-loadbalancer/pom.xml b/spring-cloud-starter-loadbalancer/pom.xml index 6caac92c..94f9fe0a 100644 --- a/spring-cloud-starter-loadbalancer/pom.xml +++ b/spring-cloud-starter-loadbalancer/pom.xml @@ -5,7 +5,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 .. 4.0.0 diff --git a/spring-cloud-starter/pom.xml b/spring-cloud-starter/pom.xml index 220b42ca..ef602ab5 100644 --- a/spring-cloud-starter/pom.xml +++ b/spring-cloud-starter/pom.xml @@ -6,7 +6,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 spring-cloud-starter spring-cloud-starter diff --git a/spring-cloud-test-support/pom.xml b/spring-cloud-test-support/pom.xml index 5bfaef1f..e67c6e13 100644 --- a/spring-cloud-test-support/pom.xml +++ b/spring-cloud-test-support/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M1 .. spring-cloud-test-support From 23d6202a71a8928b7ab202edbbe56388346e4c87 Mon Sep 17 00:00:00 2001 From: spring-builds Date: Thu, 30 Jan 2025 03:11:24 +0000 Subject: [PATCH 10/23] Going back to snapshots --- docs/pom.xml | 2 +- pom.xml | 4 ++-- spring-cloud-commons-dependencies/pom.xml | 4 ++-- spring-cloud-commons/pom.xml | 2 +- spring-cloud-context-integration-tests/pom.xml | 2 +- spring-cloud-context-webflux-integration-tests/pom.xml | 2 +- spring-cloud-context/pom.xml | 2 +- spring-cloud-loadbalancer/pom.xml | 2 +- spring-cloud-starter-bootstrap/pom.xml | 2 +- spring-cloud-starter-loadbalancer/pom.xml | 2 +- spring-cloud-starter/pom.xml | 2 +- spring-cloud-test-support/pom.xml | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/pom.xml b/docs/pom.xml index deb7dd54..333bf8e9 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -8,7 +8,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT jar Spring Cloud Commons Docs diff --git a/pom.xml b/pom.xml index 5dadb37c..162991b7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT pom Spring Cloud Commons Parent Spring Cloud Commons Parent @@ -13,7 +13,7 @@ org.springframework.cloud spring-cloud-build - 4.3.0-M1 + 4.3.0-SNAPSHOT diff --git a/spring-cloud-commons-dependencies/pom.xml b/spring-cloud-commons-dependencies/pom.xml index fcabc06b..80b4971e 100644 --- a/spring-cloud-commons-dependencies/pom.xml +++ b/spring-cloud-commons-dependencies/pom.xml @@ -6,11 +6,11 @@ spring-cloud-dependencies-parent org.springframework.cloud - 4.3.0-M1 + 4.3.0-SNAPSHOT spring-cloud-commons-dependencies - 4.3.0-M1 + 4.3.0-SNAPSHOT pom spring-cloud-commons-dependencies Spring Cloud Commons Dependencies diff --git a/spring-cloud-commons/pom.xml b/spring-cloud-commons/pom.xml index 38a86b4d..d246f36f 100644 --- a/spring-cloud-commons/pom.xml +++ b/spring-cloud-commons/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT .. spring-cloud-commons diff --git a/spring-cloud-context-integration-tests/pom.xml b/spring-cloud-context-integration-tests/pom.xml index 88eba06f..b316f1b2 100644 --- a/spring-cloud-context-integration-tests/pom.xml +++ b/spring-cloud-context-integration-tests/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT .. spring-cloud-context-integration-tests diff --git a/spring-cloud-context-webflux-integration-tests/pom.xml b/spring-cloud-context-webflux-integration-tests/pom.xml index e8a9b902..3a181468 100644 --- a/spring-cloud-context-webflux-integration-tests/pom.xml +++ b/spring-cloud-context-webflux-integration-tests/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT .. spring-cloud-context-webflux-integration-tests diff --git a/spring-cloud-context/pom.xml b/spring-cloud-context/pom.xml index 3f025f33..02277300 100644 --- a/spring-cloud-context/pom.xml +++ b/spring-cloud-context/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT .. spring-cloud-context diff --git a/spring-cloud-loadbalancer/pom.xml b/spring-cloud-loadbalancer/pom.xml index 954e88ee..d05d4b4a 100644 --- a/spring-cloud-loadbalancer/pom.xml +++ b/spring-cloud-loadbalancer/pom.xml @@ -6,7 +6,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT .. spring-cloud-loadbalancer diff --git a/spring-cloud-starter-bootstrap/pom.xml b/spring-cloud-starter-bootstrap/pom.xml index 1155359a..3749612b 100644 --- a/spring-cloud-starter-bootstrap/pom.xml +++ b/spring-cloud-starter-bootstrap/pom.xml @@ -5,7 +5,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT .. jar diff --git a/spring-cloud-starter-loadbalancer/pom.xml b/spring-cloud-starter-loadbalancer/pom.xml index 94f9fe0a..6caac92c 100644 --- a/spring-cloud-starter-loadbalancer/pom.xml +++ b/spring-cloud-starter-loadbalancer/pom.xml @@ -5,7 +5,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT .. 4.0.0 diff --git a/spring-cloud-starter/pom.xml b/spring-cloud-starter/pom.xml index ef602ab5..220b42ca 100644 --- a/spring-cloud-starter/pom.xml +++ b/spring-cloud-starter/pom.xml @@ -6,7 +6,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT spring-cloud-starter spring-cloud-starter diff --git a/spring-cloud-test-support/pom.xml b/spring-cloud-test-support/pom.xml index e67c6e13..5bfaef1f 100644 --- a/spring-cloud-test-support/pom.xml +++ b/spring-cloud-test-support/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M1 + 4.3.0-SNAPSHOT .. spring-cloud-test-support From b9dca6f5097fa0e8c6d12ec501570602c4c1d9f2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:23:13 -0500 Subject: [PATCH 11/23] Bump @springio/asciidoctor-extensions in /docs (#1459) Bumps [@springio/asciidoctor-extensions](https://github.com/spring-io/asciidoctor-extensions) from 1.0.0-alpha.14 to 1.0.0-alpha.16. - [Changelog](https://github.com/spring-io/asciidoctor-extensions/blob/main/CHANGELOG.adoc) - [Commits](https://github.com/spring-io/asciidoctor-extensions/compare/v1.0.0-alpha.14...v1.0.0-alpha.16) --- updated-dependencies: - dependency-name: "@springio/asciidoctor-extensions" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package.json b/docs/package.json index ca5b2ce8..755f9ee7 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,6 +5,6 @@ "@antora/collector-extension": "1.0.1", "@asciidoctor/tabs": "1.0.0-beta.6", "@springio/antora-extensions": "1.14.2", - "@springio/asciidoctor-extensions": "1.0.0-alpha.14" + "@springio/asciidoctor-extensions": "1.0.0-alpha.16" } } From a5080871f5c343ab1b9148d98c17135ff30c8b2f Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Mon, 3 Feb 2025 10:25:02 -0500 Subject: [PATCH 12/23] Adding 4.2.x branches Signed-off-by: Ryan Baxter --- .github/dependabot.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5b829a0c..65720c83 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -15,6 +15,11 @@ updates: target-branch: "4.1.x" schedule: interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "4.2.x" + schedule: + interval: "weekly" - package-ecosystem: "github-actions" directory: "/" target-branch: "main" @@ -53,6 +58,17 @@ updates: update-types: - version-update:semver-major - version-update:semver-minor + - package-ecosystem: maven + directory: / + schedule: + interval: daily + target-branch: 4.2.x + ignore: + # only upgrade patch versions for maintenance branch + - dependency-name: "*" + update-types: + - version-update:semver-major + - version-update:semver-minor - package-ecosystem: maven directory: / schedule: @@ -78,3 +94,8 @@ updates: directory: /docs schedule: interval: weekly + - package-ecosystem: npm + target-branch: 4.2.x + directory: /docs + schedule: + interval: weekly From 768a0ff386034e8977a7f42baa85e20c0d4e61a8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:26:17 -0500 Subject: [PATCH 13/23] Bump @springio/asciidoctor-extensions in /docs (#1460) Bumps [@springio/asciidoctor-extensions](https://github.com/spring-io/asciidoctor-extensions) from 1.0.0-alpha.14 to 1.0.0-alpha.16. - [Changelog](https://github.com/spring-io/asciidoctor-extensions/blob/main/CHANGELOG.adoc) - [Commits](https://github.com/spring-io/asciidoctor-extensions/compare/v1.0.0-alpha.14...v1.0.0-alpha.16) --- updated-dependencies: - dependency-name: "@springio/asciidoctor-extensions" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package.json b/docs/package.json index 567c1f3a..1e55982d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,6 +5,6 @@ "@antora/collector-extension": "1.0.1", "@asciidoctor/tabs": "1.0.0-beta.6", "@springio/antora-extensions": "1.14.2", - "@springio/asciidoctor-extensions": "1.0.0-alpha.14" + "@springio/asciidoctor-extensions": "1.0.0-alpha.16" } } From d541e1300c062a4b92d11612fddc4f64516bb1ca Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Mon, 3 Feb 2025 10:27:38 -0500 Subject: [PATCH 14/23] Adding 4.2.x branch Signed-off-by: Ryan Baxter --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9d5357d8..80b3cfb7 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,9 +5,9 @@ name: Build on: push: - branches: [ main, 4.1.x ] + branches: [ main, 4.2.x, 4.1.x ] pull_request: - branches: [ main, 4.1.x ] + branches: [ main, 4.2.x, 4.1.x ] jobs: build: From 290428598e8d2636de7b6ca77ad8cece331afa31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:35:40 -0500 Subject: [PATCH 15/23] Bump org.bouncycastle:bcprov-jdk18on from 1.78.1 to 1.80 (#1461) Bumps [org.bouncycastle:bcprov-jdk18on](https://github.com/bcgit/bc-java) from 1.78.1 to 1.80. - [Changelog](https://github.com/bcgit/bc-java/blob/main/docs/releasenotes.html) - [Commits](https://github.com/bcgit/bc-java/commits) --- updated-dependencies: - dependency-name: org.bouncycastle:bcprov-jdk18on dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 162991b7..770a92a7 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ commons 1.0.0 - 1.78.1 + 1.80 From 531f273339d0d0b94336181df4d2c25319694a17 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:36:11 -0500 Subject: [PATCH 16/23] Bump @springio/asciidoctor-extensions in /docs (#1462) Bumps [@springio/asciidoctor-extensions](https://github.com/spring-io/asciidoctor-extensions) from 1.0.0-alpha.14 to 1.0.0-alpha.16. - [Changelog](https://github.com/spring-io/asciidoctor-extensions/blob/main/CHANGELOG.adoc) - [Commits](https://github.com/spring-io/asciidoctor-extensions/compare/v1.0.0-alpha.14...v1.0.0-alpha.16) --- updated-dependencies: - dependency-name: "@springio/asciidoctor-extensions" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package.json b/docs/package.json index 567c1f3a..1e55982d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,6 +5,6 @@ "@antora/collector-extension": "1.0.1", "@asciidoctor/tabs": "1.0.0-beta.6", "@springio/antora-extensions": "1.14.2", - "@springio/asciidoctor-extensions": "1.0.0-alpha.14" + "@springio/asciidoctor-extensions": "1.0.0-alpha.16" } } From c8cade1a7d5f4363350ca375dbebddb22b9baa13 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Mon, 3 Feb 2025 10:39:21 -0500 Subject: [PATCH 17/23] Update maven.yml Signed-off-by: Ryan Baxter --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9d5357d8..80b3cfb7 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,9 +5,9 @@ name: Build on: push: - branches: [ main, 4.1.x ] + branches: [ main, 4.2.x, 4.1.x ] pull_request: - branches: [ main, 4.1.x ] + branches: [ main, 4.2.x, 4.1.x ] jobs: build: From 0f4407b3036ea92933ea225f32dbfe678bfded8b Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Fri, 7 Feb 2025 13:33:34 +0100 Subject: [PATCH 18/23] Fix checkstyle rules. --- src/checkstyle/checkstyle-suppressions.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml index 8ccbaf06..3a65ad08 100644 --- a/src/checkstyle/checkstyle-suppressions.xml +++ b/src/checkstyle/checkstyle-suppressions.xml @@ -21,6 +21,8 @@ + + From 4a1daae7f947deb5f59d42a14f36eba01a9aa556 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Mon, 10 Feb 2025 15:09:24 +0100 Subject: [PATCH 19/23] Update dependabot settings. Signed-off-by: Olga Maciaszek-Sharma --- .github/dependabot.yml | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 65720c83..3e82a383 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,17 +2,7 @@ version: 2 updates: - package-ecosystem: "github-actions" directory: "/" - target-branch: "3.1.x" # oldest OSS supported branch - schedule: - interval: "weekly" - - package-ecosystem: "github-actions" - directory: "/" - target-branch: "4.0.x" # oldest OSS supported branch - schedule: - interval: "weekly" - - package-ecosystem: "github-actions" - directory: "/" - target-branch: "4.1.x" + target-branch: "4.1.x" # oldest OSS supported branch schedule: interval: "weekly" - package-ecosystem: "github-actions" @@ -25,28 +15,6 @@ updates: target-branch: "main" schedule: interval: "weekly" - - package-ecosystem: maven - directory: / - schedule: - interval: daily - target-branch: 3.1.x - ignore: - # only upgrade patch versions for maintenance branch - - dependency-name: "*" - update-types: - - version-update:semver-major - - version-update:semver-minor - - package-ecosystem: maven - directory: / - schedule: - interval: daily - target-branch: 4.0.x - ignore: - # only upgrade patch versions for maintenance branch - - dependency-name: "*" - update-types: - - version-update:semver-major - - version-update:semver-minor - package-ecosystem: maven directory: / schedule: From 12395661e1883e24bce9828953526e1b75d6f3b0 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Fri, 14 Feb 2025 10:06:21 -0500 Subject: [PATCH 20/23] Manage the version of okhttp in commons (#1470) --- spring-cloud-commons-dependencies/pom.xml | 15 +++++++++++++++ spring-cloud-commons/pom.xml | 10 ++++++++++ 2 files changed, 25 insertions(+) diff --git a/spring-cloud-commons-dependencies/pom.xml b/spring-cloud-commons-dependencies/pom.xml index af72a3c7..9fc5a88d 100644 --- a/spring-cloud-commons-dependencies/pom.xml +++ b/spring-cloud-commons-dependencies/pom.xml @@ -15,6 +15,7 @@ spring-cloud-commons-dependencies Spring Cloud Commons Dependencies + 4.12.0 @@ -53,6 +54,20 @@ spring-cloud-test-support ${project.version} + + + + + + com.squareup.okhttp3 + okhttp + ${okhttp.version} + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp.version} + diff --git a/spring-cloud-commons/pom.xml b/spring-cloud-commons/pom.xml index a0c55a7c..cfe4621e 100644 --- a/spring-cloud-commons/pom.xml +++ b/spring-cloud-commons/pom.xml @@ -176,6 +176,16 @@ httpclient5 true + + com.squareup.okhttp3 + okhttp + true + + + com.squareup.okhttp3 + logging-interceptor + true + org.springframework.boot spring-boot-starter-test From f4c6446afbf6764bd6b43dc21d831554f5f5c981 Mon Sep 17 00:00:00 2001 From: spring-builds Date: Thu, 27 Feb 2025 18:59:15 +0000 Subject: [PATCH 21/23] Update SNAPSHOT to 4.3.0-M2 --- docs/pom.xml | 2 +- pom.xml | 4 ++-- spring-cloud-commons-dependencies/pom.xml | 4 ++-- spring-cloud-commons/pom.xml | 2 +- spring-cloud-context-integration-tests/pom.xml | 2 +- spring-cloud-context-webflux-integration-tests/pom.xml | 2 +- spring-cloud-context/pom.xml | 2 +- spring-cloud-loadbalancer/pom.xml | 2 +- spring-cloud-starter-bootstrap/pom.xml | 2 +- spring-cloud-starter-loadbalancer/pom.xml | 2 +- spring-cloud-starter/pom.xml | 2 +- spring-cloud-test-support/pom.xml | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/pom.xml b/docs/pom.xml index 333bf8e9..1195fb77 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -8,7 +8,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 jar Spring Cloud Commons Docs diff --git a/pom.xml b/pom.xml index 770a92a7..50f17b3b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 pom Spring Cloud Commons Parent Spring Cloud Commons Parent @@ -13,7 +13,7 @@ org.springframework.cloud spring-cloud-build - 4.3.0-SNAPSHOT + 4.3.0-M2 diff --git a/spring-cloud-commons-dependencies/pom.xml b/spring-cloud-commons-dependencies/pom.xml index 80b4971e..2ec5b126 100644 --- a/spring-cloud-commons-dependencies/pom.xml +++ b/spring-cloud-commons-dependencies/pom.xml @@ -6,11 +6,11 @@ spring-cloud-dependencies-parent org.springframework.cloud - 4.3.0-SNAPSHOT + 4.3.0-M2 spring-cloud-commons-dependencies - 4.3.0-SNAPSHOT + 4.3.0-M2 pom spring-cloud-commons-dependencies Spring Cloud Commons Dependencies diff --git a/spring-cloud-commons/pom.xml b/spring-cloud-commons/pom.xml index d246f36f..abddf831 100644 --- a/spring-cloud-commons/pom.xml +++ b/spring-cloud-commons/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 .. spring-cloud-commons diff --git a/spring-cloud-context-integration-tests/pom.xml b/spring-cloud-context-integration-tests/pom.xml index b316f1b2..4332541d 100644 --- a/spring-cloud-context-integration-tests/pom.xml +++ b/spring-cloud-context-integration-tests/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 .. spring-cloud-context-integration-tests diff --git a/spring-cloud-context-webflux-integration-tests/pom.xml b/spring-cloud-context-webflux-integration-tests/pom.xml index 3a181468..30786684 100644 --- a/spring-cloud-context-webflux-integration-tests/pom.xml +++ b/spring-cloud-context-webflux-integration-tests/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 .. spring-cloud-context-webflux-integration-tests diff --git a/spring-cloud-context/pom.xml b/spring-cloud-context/pom.xml index 02277300..002fa912 100644 --- a/spring-cloud-context/pom.xml +++ b/spring-cloud-context/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 .. spring-cloud-context diff --git a/spring-cloud-loadbalancer/pom.xml b/spring-cloud-loadbalancer/pom.xml index d05d4b4a..c8801c4a 100644 --- a/spring-cloud-loadbalancer/pom.xml +++ b/spring-cloud-loadbalancer/pom.xml @@ -6,7 +6,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 .. spring-cloud-loadbalancer diff --git a/spring-cloud-starter-bootstrap/pom.xml b/spring-cloud-starter-bootstrap/pom.xml index 3749612b..33b883d9 100644 --- a/spring-cloud-starter-bootstrap/pom.xml +++ b/spring-cloud-starter-bootstrap/pom.xml @@ -5,7 +5,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 .. jar diff --git a/spring-cloud-starter-loadbalancer/pom.xml b/spring-cloud-starter-loadbalancer/pom.xml index 6caac92c..ca7cea7b 100644 --- a/spring-cloud-starter-loadbalancer/pom.xml +++ b/spring-cloud-starter-loadbalancer/pom.xml @@ -5,7 +5,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 .. 4.0.0 diff --git a/spring-cloud-starter/pom.xml b/spring-cloud-starter/pom.xml index 220b42ca..c71d0cb1 100644 --- a/spring-cloud-starter/pom.xml +++ b/spring-cloud-starter/pom.xml @@ -6,7 +6,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 spring-cloud-starter spring-cloud-starter diff --git a/spring-cloud-test-support/pom.xml b/spring-cloud-test-support/pom.xml index 5bfaef1f..ff721521 100644 --- a/spring-cloud-test-support/pom.xml +++ b/spring-cloud-test-support/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-SNAPSHOT + 4.3.0-M2 .. spring-cloud-test-support From b68fb324c74dd88f542b403448fd3d6e5d379b1f Mon Sep 17 00:00:00 2001 From: spring-builds Date: Thu, 27 Feb 2025 19:00:15 +0000 Subject: [PATCH 22/23] Going back to snapshots --- docs/pom.xml | 2 +- pom.xml | 4 ++-- spring-cloud-commons-dependencies/pom.xml | 4 ++-- spring-cloud-commons/pom.xml | 2 +- spring-cloud-context-integration-tests/pom.xml | 2 +- spring-cloud-context-webflux-integration-tests/pom.xml | 2 +- spring-cloud-context/pom.xml | 2 +- spring-cloud-loadbalancer/pom.xml | 2 +- spring-cloud-starter-bootstrap/pom.xml | 2 +- spring-cloud-starter-loadbalancer/pom.xml | 2 +- spring-cloud-starter/pom.xml | 2 +- spring-cloud-test-support/pom.xml | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/pom.xml b/docs/pom.xml index 1195fb77..333bf8e9 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -8,7 +8,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT jar Spring Cloud Commons Docs diff --git a/pom.xml b/pom.xml index 50f17b3b..770a92a7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT pom Spring Cloud Commons Parent Spring Cloud Commons Parent @@ -13,7 +13,7 @@ org.springframework.cloud spring-cloud-build - 4.3.0-M2 + 4.3.0-SNAPSHOT diff --git a/spring-cloud-commons-dependencies/pom.xml b/spring-cloud-commons-dependencies/pom.xml index 2ec5b126..80b4971e 100644 --- a/spring-cloud-commons-dependencies/pom.xml +++ b/spring-cloud-commons-dependencies/pom.xml @@ -6,11 +6,11 @@ spring-cloud-dependencies-parent org.springframework.cloud - 4.3.0-M2 + 4.3.0-SNAPSHOT spring-cloud-commons-dependencies - 4.3.0-M2 + 4.3.0-SNAPSHOT pom spring-cloud-commons-dependencies Spring Cloud Commons Dependencies diff --git a/spring-cloud-commons/pom.xml b/spring-cloud-commons/pom.xml index abddf831..d246f36f 100644 --- a/spring-cloud-commons/pom.xml +++ b/spring-cloud-commons/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT .. spring-cloud-commons diff --git a/spring-cloud-context-integration-tests/pom.xml b/spring-cloud-context-integration-tests/pom.xml index 4332541d..b316f1b2 100644 --- a/spring-cloud-context-integration-tests/pom.xml +++ b/spring-cloud-context-integration-tests/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT .. spring-cloud-context-integration-tests diff --git a/spring-cloud-context-webflux-integration-tests/pom.xml b/spring-cloud-context-webflux-integration-tests/pom.xml index 30786684..3a181468 100644 --- a/spring-cloud-context-webflux-integration-tests/pom.xml +++ b/spring-cloud-context-webflux-integration-tests/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT .. spring-cloud-context-webflux-integration-tests diff --git a/spring-cloud-context/pom.xml b/spring-cloud-context/pom.xml index 002fa912..02277300 100644 --- a/spring-cloud-context/pom.xml +++ b/spring-cloud-context/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT .. spring-cloud-context diff --git a/spring-cloud-loadbalancer/pom.xml b/spring-cloud-loadbalancer/pom.xml index c8801c4a..d05d4b4a 100644 --- a/spring-cloud-loadbalancer/pom.xml +++ b/spring-cloud-loadbalancer/pom.xml @@ -6,7 +6,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT .. spring-cloud-loadbalancer diff --git a/spring-cloud-starter-bootstrap/pom.xml b/spring-cloud-starter-bootstrap/pom.xml index 33b883d9..3749612b 100644 --- a/spring-cloud-starter-bootstrap/pom.xml +++ b/spring-cloud-starter-bootstrap/pom.xml @@ -5,7 +5,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT .. jar diff --git a/spring-cloud-starter-loadbalancer/pom.xml b/spring-cloud-starter-loadbalancer/pom.xml index ca7cea7b..6caac92c 100644 --- a/spring-cloud-starter-loadbalancer/pom.xml +++ b/spring-cloud-starter-loadbalancer/pom.xml @@ -5,7 +5,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT .. 4.0.0 diff --git a/spring-cloud-starter/pom.xml b/spring-cloud-starter/pom.xml index c71d0cb1..220b42ca 100644 --- a/spring-cloud-starter/pom.xml +++ b/spring-cloud-starter/pom.xml @@ -6,7 +6,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT spring-cloud-starter spring-cloud-starter diff --git a/spring-cloud-test-support/pom.xml b/spring-cloud-test-support/pom.xml index ff721521..5bfaef1f 100644 --- a/spring-cloud-test-support/pom.xml +++ b/spring-cloud-test-support/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-commons-parent - 4.3.0-M2 + 4.3.0-SNAPSHOT .. spring-cloud-test-support From a196c33610b2b3c755535c5edf2993841b3f99d3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Mar 2025 15:29:02 +0100 Subject: [PATCH 23/23] Bump @springio/antora-extensions from 1.14.2 to 1.14.4 in /docs (#1474) Bumps [@springio/antora-extensions](https://github.com/spring-io/antora-extensions) from 1.14.2 to 1.14.4. - [Changelog](https://github.com/spring-io/antora-extensions/blob/main/CHANGELOG.adoc) - [Commits](https://github.com/spring-io/antora-extensions/compare/v1.14.2...v1.14.4) --- updated-dependencies: - dependency-name: "@springio/antora-extensions" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- docs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package.json b/docs/package.json index 755f9ee7..9e455a6d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -4,7 +4,7 @@ "@antora/atlas-extension": "1.0.0-alpha.2", "@antora/collector-extension": "1.0.1", "@asciidoctor/tabs": "1.0.0-beta.6", - "@springio/antora-extensions": "1.14.2", + "@springio/antora-extensions": "1.14.4", "@springio/asciidoctor-extensions": "1.0.0-alpha.16" } }