Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cdsrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"requires": {
"multitenancy": true,
"extensibility": true,
"toggles": true
"toggles": true,
"ord": true
},
"profile": "with-mtx-sidecar",
"odata": {
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ hs_err*

/chart/
.reloadtrigger

srv/src/main/resources/ord/**
2 changes: 1 addition & 1 deletion db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"scripts": {
"start": "node node_modules/@sap/hdi-deploy/deploy.js --use-hdb",
"build": "npm ci && npx cds build .. --for hana --production"
"build": "npm install && npx cds build .. --for hana --production"
}
}
13 changes: 10 additions & 3 deletions mtx/sidecar/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "bookshop-cds",
"dependencies": {
"@cap-js/hana": "^2",
"@sap/cds": "^9",
"@sap/cds-mtxs": "^3",
"@sap/xssec": "^4",
"express": "^4"
"express": "^4",
"@cap-js/ord": "^1.6.0"
},
"devDependencies": {
"@cap-js/sqlite": "^2"
Expand All @@ -13,10 +15,15 @@
"node": "^22"
},
"cds": {
"profiles": ["mtx-sidecar", "java"]
"profiles": ["mtx-sidecar", "java"],
"ord": {
"namespace": "sap.sample",
"policyLevels": ["sap:core:v1"],
"description": "This is a custom description"
}
},
"scripts": {
"start": "cds-serve",
"build": "cds build ../.. --for mtx-sidecar --production && npm ci --prefix gen"
"build": "cds build ../.. --for mtx-sidecar --production && npm install --prefix gen"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Generated by cds-services-archetype",
"devDependencies": {
"@sap/cds-dk": "9.8.1",
"@sap/cds-mtxs": "^3"
"@sap/cds-mtxs": "^3",
"@cap-js/ord": "^1.6.0"
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet released.

},
"workspaces": [
"mtx/sidecar"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<!-- DEPENDENCIES VERSION -->
<jdk.version>21</jdk.version>
<cds.services.version>4.8.0</cds.services.version>
<cds.services.version>4.9.0</cds.services.version>
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet released.

<cloud.sdk.version>5.27.0</cloud.sdk.version>
<xsuaa.version>3.6.8</xsuaa.version>
<cf-java-logging-support.version>4.1.0</cf-java-logging-support.version>
Expand Down
7 changes: 7 additions & 0 deletions srv/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>com.sap.cds</groupId>
<artifactId>cds-feature-ord</artifactId>
<scope>runtime</scope>
</dependency>

<!-- CLOUD SDK dependencies -->
<dependency>
<groupId>com.sap.cloud.sdk.cloudplatform</groupId>
Expand Down Expand Up @@ -218,6 +224,7 @@
<configuration>
<commands>
<command>build --for java</command>
<command>build --for ord -o "${project.basedir}/src/main/resources/ord"</command>
<command>deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema-h2.sql"</command>
<command>compile srv/cat-service.cds -2 openapi --openapi:url /api/browse &gt;
"${project.basedir}/src/main/resources/swagger/openapi.json"</command>
Expand Down