Update pom.xml example (#611)

* Update version of sdk
* Use xml format comment

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
This commit is contained in:
Robert LU 2021-08-31 08:01:09 +08:00 committed by GitHub
parent bab9d85620
commit 9c85a0f78e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 12 deletions

View File

@ -22,28 +22,28 @@ description: Java SDK packages for developing Dapr applications
## Importing Dapr's Java SDK
For a Maven project, add the following to your `pom.xml` file:
```java
```xml
<project>
...
<dependencies>
...
// Dapr's core SDK with all features, except Actors.
<!-- Dapr's core SDK with all features, except Actors. -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk</artifacetId>
<version>1.1.0</version>
<artifactId>dapr-sdk</artifactId>
<version>1.2.0</version>
</dependency>
// Dapr's SDK for Actors (optional).
<!-- Dapr's SDK for Actors (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-actors</artifactId>
<version>1.1.0</version>>
<version>1.2.0</version>
</dependency>
// Dapr's SDK integration with SpringBoot (optional).
<!-- Dapr's SDK integration with SpringBoot (optional). -->
<dependency>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-springboot</artifactId>
<version>1.1.0</version>>
<version>1.2.0</version>
</dependency>
...
</dependencies>
@ -57,11 +57,11 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
...
// Dapr's core SDK with all features, except Actors.
compile('io.dapr:dapr-sdk:1.1.0'))
compile('io.dapr:dapr-sdk:1.2.0')
// Dapr's SDK for Actors (optional).
compile('io.dapr:dapr-sdk-actors:1.1.0')
compile('io.dapr:dapr-sdk-actors:1.2.0')
// Dapr's SDK integration with SpringBoot (optional).
compile('io.dapr:dapr-sdk-springboot:1.1.0')
compile('io.dapr:dapr-sdk-springboot:1.2.0')
}
```
@ -240,4 +240,4 @@ public interface DemoActor {
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/actors) for code samples and instructions to try actors
## Related links
- [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples)
- [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples)