SAP Knowledge Base Article - Preview

3635444 - OpenRewrite generated dry run report contains very limited changes

Symptom

While following 3618495 to update your Commerce to JDK21, under certain circumstances it might happen that in the "./gradlew rewriteDryRun" step, the generated report only contains a few lines. E.g., After the Dry Run step, you'll get:

...

Report available:

    /[hybris_loca_path]/hybris/bin/platform/eclipsebin/notused/reports/rewrite/rewrite.patch

Estimate time saved: 1h 25m

Run 'gradle rewriteRun' to apply the recipes.

:rewriteDryRun (Thread[Execution worker for ':' Thread 9,5,main]) completed. Took 44.768 secs.

...

Open the rewrite.patch file. Usually it will contain at least a couple of hundred lines, but if it only contains a few lines. E.g.:

diff --git a/../custom/customFacade/external-dependencies.xml b/../custom/customFacade/external-dependencies.xml index 5196061..ae624bc 100644 --- a/../custom/customFacade/external-dependencies.xml +++ b/../custom/customFacade/external-dependencies.xml @@ -9,6 +9,9 @@ com.sap.cx.rewrite.java.SelectiveCommerceCloudFrameworkUpdate <version>2211.42</version> <packaging>jar</packaging> + <properties> + <maven.compiler.release>21</maven.compiler.release> + </properties> <dependencies> </dependencies>

Even if it finishes successfully, the rewrite won't cover the expected changes.


Read more...

Environment

  • SAP Commerce Cloud
  • SAP Commerce Cloud for JDK 21

Product

SAP Commerce Cloud 2211 ; SAP Commerce Cloud 2211 for JDK21

Keywords

OpenRewrite, Framework Update , KBA , CEC-SCC-PLA-PL , Platform , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.