Skip to content

Commit 27b7a76

Browse files
authored
fix(java): update OpenRewrite recipe namespaces to com.sap.cds.services.migrations (#2561)
## Summary - Updates all `com.sap.cds.services.recipes.*` recipe name references in `java/migration.md` to `com.sap.cds.services.migrations.*` - Aligns with the namespace consolidation in `cds-services-recipes` (commit `1cc8c93276`), which moved all Java classes and YAML recipe names from `.recipes` to `.migrations` ## Test plan - [ ] Verify the recipe names in the CLI example, prose, table description, and table entries all use the `com.sap.cds.services.migrations` namespace
1 parent 4a96c26 commit 27b7a76

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

java/migration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ As migration is a one-time operation, run the OpenRewrite `recipes` as a command
3737
```bash-vue
3838
mvn org.openrewrite.maven:rewrite-maven-plugin:run \
3939
-Drewrite.recipeArtifactCoordinates=com.sap.cds:cds-services-recipes:{{ versions.java_services }} \
40-
-Drewrite.activeRecipes=com.sap.cds.services.recipes.Cap_4.9
40+
-Drewrite.activeRecipes=com.sap.cds.services.migrations.Cap_4.9
4141
```
4242

43-
Here, the *recipe* `com.sap.cds.services.recipes.Cap_4.9` from CAP Java's OpenRewrite Maven artifact `com.sap.cds:cds-services-recipes` is called in the given project context. The *recipe* is a container for one or more recipes. A recipe is a rule that tells OpenRewrite how to transform code.
43+
Here, the *recipe* `com.sap.cds.services.migrations.Cap_4.9` from CAP Java's OpenRewrite Maven artifact `com.sap.cds:cds-services-recipes` is called in the given project context. The *recipe* is a container for one or more recipes. A recipe is a rule that tells OpenRewrite how to transform code.
4444

4545
### Currently Released CAP Java Migrations
4646

47-
The following table lists the individual recipes provided by CAP for APIs that have been deprecated and are subject for removal. Besides these fine grained recipes, course grained recipes might be provided per release (e.g. `com.sap.cds.services.recipes.Cap_4.9`). These type of recipes include all recipes for APIs deprecated in this AND previous releases. Consequently, it is sufficient to execute the latest recipe matching the version of the CAP Java SDK you are upgrading to.
47+
The following table lists the individual recipes provided by CAP for APIs that have been deprecated and are subject for removal. Besides these fine grained recipes, course grained recipes might be provided per release (e.g. `com.sap.cds.services.migrations.Cap_4.9`). These type of recipes include all recipes for APIs deprecated in this AND previous releases. Consequently, it is sufficient to execute the latest recipe matching the version of the CAP Java SDK you are upgrading to.
4848

4949
|Name |Description|Available since|
5050
|--------|-----------|---------------|
5151
|[com.sap.cds.services.migrations.MigrateStatements](../releases/2025/aug25#typed-query-results)|Migrates CQN statements to comply with typed Query API changes in 4.3.0.|4.3.0|
5252
|[com.sap.cds.services.migrations.ServiceExceptionUtils](#removed-java-apis-4-to-5)|Replaces deprecated methods in `ServiceExceptionUtils`.|4.9.0|
5353
|[com.sap.cds.services.migrations.MigrateSaasRegistryDependency](#removed-java-apis-4-to-5)|Replaces deprecated `SaasRegistryDependency` methods `setAppId`/`setAppName`/`getAppId`/`getAppName` with their `xsappname`-based replacements.|4.9.0|
54-
|[com.sap.cds.services.recipes.UclMigration](#removed-java-apis-4-to-5)|Migrates deprecated UCL result getter and setter methods to the new API.|4.9.0|
54+
|[com.sap.cds.services.migrations.UclMigration](#removed-java-apis-4-to-5)|Migrates deprecated UCL result getter and setter methods to the new API.|4.9.0|
5555

5656
## CAP Java 4.9 to CAP Java 5.0 (TBA) { #four-to-five }
5757

0 commit comments

Comments
 (0)