|
14 | 14 | @Named |
15 | 15 | public class DeprecatedBuildpackChecker { |
16 | 16 |
|
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"; |
20 | 21 |
|
21 | 22 | private static final String DEPRECATED_BUILDPACK = "sap_java_buildpack"; |
22 | 23 |
|
@@ -48,16 +49,15 @@ private boolean hasDeprecatedBuildpack(Module module, DeploymentDescriptor deplo |
48 | 49 |
|
49 | 50 | private void logDeprecationNotice(StepLogger stepLogger, List<String> appsWithDeprecatedBuildpacks) { |
50 | 51 | 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); |
61 | 61 | } |
62 | 62 |
|
63 | 63 | } |
0 commit comments