Skip to content

Commit 08627ac

Browse files
committed
Add more info for message
1 parent 731536e commit 08627ac

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

multiapps-controller-process/src/main/java/org/cloudfoundry/multiapps/controller/process/util/DeprecatedBuildpackChecker.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
@Named
1515
public class DeprecatedBuildpackChecker {
1616

17-
private static final String DEPRECATION_MESSAGE = "SAP Java Buildpack 1 has been deprecated and is scheduled for removal from the SAP BTP, Cloud Foundry environment on June 30, 2025!";
18-
private static final String DEFAULT_BUILDPACK_MESSAGE = "Currently, the module types java.tomee and java default to SAP Java Buildpack 1 if no buildpack is explicitly specified. This behavior will remain in effect until the buildpack's removal.";
19-
private static final String DEPRECATION_LINK = "For more information, see: https://help.sap.com/whats-new/cf0cb2cb149647329b5d02aa96303f56?Component=SAP+Java+Buildpack&Valid_as_Of=2025-04-01:2025-04-10&locale=en-US";
17+
private static final String DEPRECATION_MESSAGE = "SAP Java Buildpack 1 has been deprecated and is going to be removed from SAP BTP, Cloud Foundry environment after June, 2025!";
18+
private static final String DEFAULT_BUILDPACK_MESSAGE_1 = "If no buildpack is specified, sap_java_buildpack is currently applied by default for certain module types (java.tomee, java.tomcat, java).";
19+
private static final String DEFAULT_BUILDPACK_MESSAGE_2 = "This default will change after June - we strongly recommend that you manually migrate to the supported buildpack in advance to avoid deployment issues.";
20+
private static final String DEPRECATION_LINK = "https://help.sap.com/whats-new/cf0cb2cb149647329b5d02aa96303f56?Component=SAP+Java+Buildpack&Valid_as_Of=2025-04-01:2025-04-10&locale=en-US";
2021

2122
private static final String DEPRECATED_BUILDPACK = "sap_java_buildpack";
2223

@@ -48,16 +49,15 @@ private boolean hasDeprecatedBuildpack(Module module, DeploymentDescriptor deplo
4849

4950
private void logDeprecationNotice(StepLogger stepLogger, List<String> appsWithDeprecatedBuildpacks) {
5051
String separator = "=".repeat(80);
51-
String message = String.join("\n",
52-
"== ATTENTION: ==",
53-
separator,
54-
DEPRECATION_MESSAGE,
55-
DEFAULT_BUILDPACK_MESSAGE,
56-
"Affected modules: " + appsWithDeprecatedBuildpacks,
57-
DEPRECATION_LINK,
58-
separator
59-
);
60-
stepLogger.warn(message);
52+
53+
stepLogger.warn("== ATTENTION: ==");
54+
stepLogger.warn(separator);
55+
stepLogger.warn(DEPRECATION_MESSAGE);
56+
stepLogger.warn(DEFAULT_BUILDPACK_MESSAGE_1);
57+
stepLogger.warn(DEFAULT_BUILDPACK_MESSAGE_2);
58+
stepLogger.warn("Affected modules: " + appsWithDeprecatedBuildpacks);
59+
stepLogger.warn("For more information, see: " + DEPRECATION_LINK);
60+
stepLogger.warn(separator);
6161
}
6262

6363
}

0 commit comments

Comments
 (0)