Skip to content

Build a CAP Application : Demo Tutorial env updated to latest CDS Version 5 #951

Description

@iaznexai

Tutorials: https://developers.sap.com/tutorials/build-cap-app.html

The existing tutorial will result in error "CDS Compiler version 7 is not supported by CAP Java 4. Please use cds-dk 9 w/ cds-compiler 6" when running with the default CDS version..
Better to upgrade the CDS version.

Update pom.xml at the root directory

<jdk.version>21</jdk.version>
<cds.services.version>5.0.0</cds.services.version>
<spring.boot.version>4.1.0</spring.boot.version>

Update package.json at the root directory (remove the ^ cap key in the cds-dk version)

{
  "name": "incident_management-cds",
  "version": "1.0.0",
  "devDependencies": {
    "@sap/cds-dk": "9.9.3"
  }
}

run the following command while in SRV subfolder

npm i -g @sap/cds-dk
cds upgrade

The rest of the tutorial will work fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions