Skip to content

Java minimum dependency versions major #1842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
20 changes: 14 additions & 6 deletions java/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,20 @@ Since version 1.27 CAP Java is running with Spring Boot 2.7, which uses Spring S

Make sure that all libraries used in your project are either compatible with Spring Boot 3 / Jakarta EE 10 or alternatively offer a new version which you can adopt.

CAP Java 2.0 itself requires updated [dependency versions](./versions#dependencies-version-2) of:
- `@sap/cds-dk`
- `@sap/cds-compiler`
- XSUAA library
- SAP Cloud SDK
- Java Logging (replace `cf-java-logging-support-servlet` with `cf-java-logging-support-servlet-jakarta`)
CAP Java 2.0 itself requires updated minimum dependency versions:

| Dependency | Minimum Version | Recommended Version |
| --- | --- | --- |
| JDK | 17 | 21 |
| Maven | 3.5.0 | 3.9.8 |
| @sap/cds-dk | 6 | 7 |
| @sap/cds-compiler | 3 | 4 |
| Spring Boot | 3.0 | latest |
| XSUAA | 3.0 | latest |
| SAP Cloud SDK | 4.24 | latest |
| Java Logging | 3.7 | latest |

Java Logging (replace `cf-java-logging-support-servlet` with `cf-java-logging-support-servlet-jakarta`)

::: warning
The Cloud SDK BOM `sdk-bom` manages XSUAA until version 2.x, which isn't compatible with CAP Java 2.x.
Expand Down
29 changes: 11 additions & 18 deletions java/versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,40 +61,33 @@ CAP Java uses various dependencies that are also used by the applications themse
If the applications decide to manage the versions of these dependencies, it's helpful to know the minimum versions of these dependencies that CAP Java requires.
The following table lists these minimum versions for various common dependencies, based on the latest release:


#### Active Version 3.x { #dependencies-version-3 }
#### Active Version 4.x { #dependencies-version-4 }

| Dependency | Minimum Version | Recommended Version |
| --- | --- | --- |
| JDK | 17 | 21 |
| Maven | 3.6.3 | 3.9.8 |
| @sap/cds-dk | 7 | latest |
| @sap/cds-compiler | 4 | latest |
| Maven | 3.6.3 | 3.9.9 |
| @sap/cds-dk | 8 | latest |
| @sap/cds-compiler | 5 | latest |
| Spring Boot | 3.0 | latest |
| XSUAA | 3.0 | latest |
| XSUAA | 3.1 | latest |
| SAP Cloud SDK | 5.9 | latest |
| Java Logging | 3.7 | latest |
| Node.js | 20 | 22 |

#### Maintenance Version 2.10.x { #dependencies-version-2 }
#### Maintenance Version 3.10.x { #dependencies-version-3 }

| Dependency | Minimum Version | Recommended Version |
| --- | --- | --- |
| JDK | 17 | 21 |
| Maven | 3.5.0 | 3.9.8 |
| @sap/cds-dk | 6 | 7 |
| @sap/cds-compiler | 3 | 4 |
| Maven | 3.6.3 | 3.9.8 |
| @sap/cds-dk | 7 | latest |
| @sap/cds-compiler | 4 | latest |
| Spring Boot | 3.0 | latest |
| XSUAA | 3.0 | latest |
| SAP Cloud SDK | 4.24 | latest |
| SAP Cloud SDK | 5.9 | latest |
| Java Logging | 3.7 | latest |

::: warning
The Cloud SDK BOM `sdk-bom` manages XSUAA until version 2.x, which isn't compatible with CAP Java 2.x.
You have two options:
* Replace `sdk-bom` with `sdk-modules-bom`, which [manages all Cloud SDK dependencies but not the transitive dependencies.](https://sap.github.io/cloud-sdk/docs/java/guides/manage-dependencies#the-sap-cloud-sdk-bill-of-material)
* Or, add [dependency management for XSUAA](https://github.com/SAP/cloud-security-services-integration-library#installation) before Cloud SDK's `sdk-bom`.
:::


### Consistent Versions

Expand Down