You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add BOM usage instructions to README (#1720)
Document dapr-sdk-bom as the recommended way to import the SDK,
with version-free dependency declarations for both Maven and Gradle.
Keep the manual version approach as an alternative.
Signed-off-by: Javier Aliaga <javier@aliaga.dev>
Signed-off-by: Javier Aliaga <javier@diagrid.io>
Copy file name to clipboardExpand all lines: README.md
+63-11Lines changed: 63 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,47 +59,99 @@ For the full list of available APIs, see the [Dapr API reference](https://docs.d
59
59
If using [SDKMAN!](https://sdkman.io), execute `sdk env install` to install the required JDK.
60
60
61
61
### Importing Dapr's Java SDK
62
+
63
+
#### Using the BOM (recommended)
64
+
65
+
Import `dapr-sdk-bom` to manage all Dapr SDK versions and security-patched transitive dependencies in one place. This ensures your project inherits fixes for CVEs in transitive dependencies like Netty and Jackson.
66
+
62
67
For a Maven project, add the following to your `pom.xml` file:
63
68
```xml
64
69
<project>
65
70
...
71
+
<dependencyManagement>
72
+
<dependencies>
73
+
<dependency>
74
+
<groupId>io.dapr</groupId>
75
+
<artifactId>dapr-sdk-bom</artifactId>
76
+
<version>1.18.0</version>
77
+
<type>pom</type>
78
+
<scope>import</scope>
79
+
</dependency>
80
+
</dependencies>
81
+
</dependencyManagement>
82
+
66
83
<dependencies>
67
-
...
68
-
<!-- Dapr's core SDK with all features, except Actors. -->
84
+
<!-- Dapr's core SDK with all features, except Actors. -->
69
85
<dependency>
70
86
<groupId>io.dapr</groupId>
71
87
<artifactId>dapr-sdk</artifactId>
72
-
<version>1.17.2</version>
73
88
</dependency>
74
89
<!-- Dapr's SDK for Actors (optional). -->
75
90
<dependency>
76
91
<groupId>io.dapr</groupId>
77
92
<artifactId>dapr-sdk-actors</artifactId>
78
-
<version>1.17.2</version>
79
93
</dependency>
80
94
<!-- Dapr's SDK integration with SpringBoot (optional). -->
81
95
<dependency>
82
96
<groupId>io.dapr</groupId>
83
97
<artifactId>dapr-sdk-springboot</artifactId>
84
-
<version>1.17.2</version>
85
98
</dependency>
86
-
...
87
99
</dependencies>
88
100
...
89
101
</project>
90
102
```
91
103
92
104
For a Gradle project, add the following to your `build.gradle` file:
0 commit comments