You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(cf-env): migration guide should use java-cfenv-all
The main migration steps recommended java-cfenv-boot 3.1.4, which does not
carry CloudProfileApplicationListener and so drops the `cloud` profile --
contradicting the guide's own notes. Switch the pom/gradle snippets and
checklist to java-cfenv-all, version-matched to the app's Spring Boot major
(3.5.1 for 3.x, 4.0.0 for 4.x), and note java-cfenv-boot as the lighter
option for apps that do not need the `cloud` profile.
Refs #1349.
Copy file name to clipboardExpand all lines: docs/spring-auto-reconfiguration-migration.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,8 +70,9 @@ This guide provides step-by-step instructions for migrating from the deprecated
70
70
<!-- Add to your pom.xml -->
71
71
<dependency>
72
72
<groupId>io.pivotal.cfenv</groupId>
73
-
<artifactId>java-cfenv-boot</artifactId>
74
-
<version>3.1.4</version>
73
+
<artifactId>java-cfenv-all</artifactId>
74
+
<!-- match your Spring Boot major: 3.5.1 for Spring Boot 3, 4.0.0 for Spring Boot 4 -->
75
+
<version>3.5.1</version>
75
76
</dependency>
76
77
```
77
78
@@ -80,6 +81,7 @@ This guide provides step-by-step instructions for migrating from the deprecated
80
81
- Library reads `VCAP_SERVICES` and sets Spring Boot properties
81
82
- Spring Boot autoconfiguration uses these properties
82
83
- More transparent and Spring Boot native
84
+
- `java-cfenv-all` bundles the property post-processors **and** the `cloud` profile listener (`CloudProfileApplicationListener`); use the lighter `java-cfenv-boot` instead only if you do not rely on the `cloud` profile
83
85
84
86
---
85
87
@@ -109,11 +111,11 @@ Check your `pom.xml` or `build.gradle`:
109
111
110
112
```xml
111
113
<dependencies>
112
-
<!-- Add this dependency -->
114
+
<!-- Add this dependency (match your Spring Boot major: 3.5.1 for Spring Boot 3, 4.0.0 for Spring Boot 4) -->
113
115
<dependency>
114
116
<groupId>io.pivotal.cfenv</groupId>
115
-
<artifactId>java-cfenv-boot</artifactId>
116
-
<version>3.1.4</version>
117
+
<artifactId>java-cfenv-all</artifactId>
118
+
<version>3.5.1</version>
117
119
</dependency>
118
120
</dependencies>
119
121
```
@@ -122,7 +124,7 @@ Check your `pom.xml` or `build.gradle`:
0 commit comments