Skip to content

Commit c98bb2b

Browse files
committed
draft: Integrate with ORD
1 parent 80083ef commit c98bb2b

7 files changed

Lines changed: 25 additions & 7 deletions

File tree

.cdsrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"requires": {
33
"multitenancy": true,
44
"extensibility": true,
5-
"toggles": true
5+
"toggles": true,
6+
"ord": true
67
},
78
"profile": "with-mtx-sidecar",
89
"odata": {

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ hs_err*
3636

3737
/chart/
3838
.reloadtrigger
39+
40+
srv/src/main/resources/ord/**

db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
},
1010
"scripts": {
1111
"start": "node node_modules/@sap/hdi-deploy/deploy.js --use-hdb",
12-
"build": "npm ci && npx cds build .. --for hana --production"
12+
"build": "npm install && npx cds build .. --for hana --production"
1313
}
1414
}

mtx/sidecar/package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2+
"name": "bookshop-cds",
23
"dependencies": {
34
"@cap-js/hana": "^2",
45
"@sap/cds": "^9",
56
"@sap/cds-mtxs": "^3",
67
"@sap/xssec": "^4",
7-
"express": "^4"
8+
"express": "^4",
9+
"@cap-js/ord": "^1.6.0"
810
},
911
"devDependencies": {
1012
"@cap-js/sqlite": "^2"
@@ -13,10 +15,15 @@
1315
"node": "^22"
1416
},
1517
"cds": {
16-
"profiles": ["mtx-sidecar", "java"]
18+
"profiles": ["mtx-sidecar", "java"],
19+
"ord": {
20+
"namespace": "sap.sample",
21+
"policyLevels": ["sap:core:v1"],
22+
"description": "This is a custom description"
23+
}
1724
},
1825
"scripts": {
1926
"start": "cds-serve",
20-
"build": "cds build ../.. --for mtx-sidecar --production && npm ci --prefix gen"
27+
"build": "cds build ../.. --for mtx-sidecar --production && npm install --prefix gen"
2128
}
2229
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Generated by cds-services-archetype",
55
"devDependencies": {
66
"@sap/cds-dk": "9.8.1",
7-
"@sap/cds-mtxs": "^3"
7+
"@sap/cds-mtxs": "^3",
8+
"@cap-js/ord": "^1.6.0"
89
},
910
"workspaces": [
1011
"mtx/sidecar"

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<!-- DEPENDENCIES VERSION -->
3030
<jdk.version>21</jdk.version>
31-
<cds.services.version>4.8.0</cds.services.version>
31+
<cds.services.version>4.9.0</cds.services.version>
3232
<cloud.sdk.version>5.27.0</cloud.sdk.version>
3333
<xsuaa.version>3.6.8</xsuaa.version>
3434
<cf-java-logging-support.version>4.1.0</cf-java-logging-support.version>

srv/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
<scope>runtime</scope>
6565
</dependency>
6666

67+
<dependency>
68+
<groupId>com.sap.cds</groupId>
69+
<artifactId>cds-feature-ord</artifactId>
70+
<scope>runtime</scope>
71+
</dependency>
72+
6773
<!-- CLOUD SDK dependencies -->
6874
<dependency>
6975
<groupId>com.sap.cloud.sdk.cloudplatform</groupId>
@@ -218,6 +224,7 @@
218224
<configuration>
219225
<commands>
220226
<command>build --for java</command>
227+
<command>build --for ord -o "${project.basedir}/src/main/resources/ord"</command>
221228
<command>deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema-h2.sql"</command>
222229
<command>compile srv/cat-service.cds -2 openapi --openapi:url /api/browse &gt;
223230
"${project.basedir}/src/main/resources/swagger/openapi.json"</command>

0 commit comments

Comments
 (0)