You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2026/03/12 14:18:17 UTC

(camel-spring-boot) branch fix/camel-22463-sb4-deprecations created (now cfaf36f520c)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a change to branch fix/camel-22463-sb4-deprecations
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


      at cfaf36f520c CAMEL-22463: Fix Spring Boot 4 deprecation warnings

This branch includes the following new commits:

     new cfaf36f520c CAMEL-22463: Fix Spring Boot 4 deprecation warnings

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel-spring-boot) 01/01: CAMEL-22463: Fix Spring Boot 4 deprecation warnings

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch fix/camel-22463-sb4-deprecations
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit cfaf36f520cd64b481192de7419aaf120bebb3bd
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Thu Mar 12 15:17:19 2026 +0100

    CAMEL-22463: Fix Spring Boot 4 deprecation warnings
    
    - Update EnvironmentPostProcessor import from deprecated
      org.springframework.boot.env package to org.springframework.boot
      (marked for removal in a future Spring Boot release)
    - Update spring.factories entries to use the new
      org.springframework.boot.EnvironmentPostProcessor key
    - Replace deprecated org.springframework.lang.Nullable with
      org.jspecify.annotations.Nullable (Spring Framework 7 moved
      to JSpecify)
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
 .../config/springboot/CamelCloudConfigEnvironmentPostProcessor.java     | 2 +-
 .../src/main/resources/META-INF/spring.factories                        | 2 +-
 .../camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor.java   | 2 +-
 .../apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java  | 2 +-
 core/camel-spring-boot/src/main/resources/META-INF/spring.factories     | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/components-starter/camel-spring-cloud-config-starter/src/main/java/org/apache/camel/component/spring/cloud/config/springboot/CamelCloudConfigEnvironmentPostProcessor.java b/components-starter/camel-spring-cloud-config-starter/src/main/java/org/apache/camel/component/spring/cloud/config/springboot/CamelCloudConfigEnvironmentPostProcessor.java
index 5e55ab31e34..ff8911788d3 100644
--- a/components-starter/camel-spring-cloud-config-starter/src/main/java/org/apache/camel/component/spring/cloud/config/springboot/CamelCloudConfigEnvironmentPostProcessor.java
+++ b/components-starter/camel-spring-cloud-config-starter/src/main/java/org/apache/camel/component/spring/cloud/config/springboot/CamelCloudConfigEnvironmentPostProcessor.java
@@ -20,7 +20,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor;
-import org.springframework.boot.env.EnvironmentPostProcessor;
+import org.springframework.boot.EnvironmentPostProcessor;
 import org.springframework.core.Ordered;
 import org.springframework.core.env.ConfigurableEnvironment;
 import org.springframework.core.env.PropertiesPropertySource;
diff --git a/components-starter/camel-spring-cloud-config-starter/src/main/resources/META-INF/spring.factories b/components-starter/camel-spring-cloud-config-starter/src/main/resources/META-INF/spring.factories
index 3676d9af7e1..2861cf3adf1 100644
--- a/components-starter/camel-spring-cloud-config-starter/src/main/resources/META-INF/spring.factories
+++ b/components-starter/camel-spring-cloud-config-starter/src/main/resources/META-INF/spring.factories
@@ -18,5 +18,5 @@
 org.springframework.context.ApplicationListener=\
   org.apache.camel.component.spring.cloud.config.springboot.SpringBootCloudConfigPropertiesParser
 
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
   org.apache.camel.component.spring.cloud.config.springboot.CamelCloudConfigEnvironmentPostProcessor
\ No newline at end of file
diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor.java
index b6c79459218..978310d4a6d 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor.java
@@ -19,7 +19,7 @@ package org.apache.camel.spring.boot;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.boot.SpringApplication;
-import org.springframework.boot.env.EnvironmentPostProcessor;
+import org.springframework.boot.EnvironmentPostProcessor;
 import org.springframework.core.env.ConfigurableEnvironment;
 
 /**
diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java
index 8658bdf10e4..3e05d6a269d 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/endpoint/CamelRoutesEndpoint.java
@@ -31,7 +31,7 @@ import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
 import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
 import org.springframework.boot.actuate.endpoint.annotation.Selector;
 import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;
-import org.springframework.lang.Nullable;
+import org.jspecify.annotations.Nullable;
 
 import java.util.Collection;
 import java.util.Collections;
diff --git a/core/camel-spring-boot/src/main/resources/META-INF/spring.factories b/core/camel-spring-boot/src/main/resources/META-INF/spring.factories
index a0d9d865f47..85c74b382e0 100644
--- a/core/camel-spring-boot/src/main/resources/META-INF/spring.factories
+++ b/core/camel-spring-boot/src/main/resources/META-INF/spring.factories
@@ -15,5 +15,5 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
 org.apache.camel.spring.boot.CamelVirtualThreadEnvironmentPostProcessor