Skip to content

Commit a70828b

Browse files
committed
chore: update spring sample to use official spring sdk 8.6.3
1 parent 20d0ce7 commit a70828b

File tree

3 files changed

+15
-31
lines changed

3 files changed

+15
-31
lines changed

spring/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ This guide explains how to setup a Spring Boot project to automate a process usi
55

66
# Install dependencies
77

8-
The open source library [spring-zeebe](https://github.com/camunda-community-hub/spring-zeebe)
8+
The [official Spring Zeebe SDK](https://docs.camunda.io/docs/next/apis-tools/spring-zeebe-sdk/getting-started/)
99
provides a Zeebe client.
1010

1111
```
12-
<dependency>
13-
<groupId>io.camunda</groupId>
14-
<artifactId>spring-zeebe-starter</artifactId>
15-
<version>8.5.6</version>
16-
</dependency>
12+
<dependency>
13+
<groupId>io.camunda</groupId>
14+
<artifactId>spring-boot-starter-camunda-sdk</artifactId>
15+
<version>${zeebe.version}</version>
16+
</dependency>
1717
```
1818

1919
# Create Client

spring/pom.xml

+7-21
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,30 @@
99
<artifactId>camunda-platform-get-started-spring</artifactId>
1010
<version>1.0.0-SNAPSHOT</version>
1111

12-
<parent>
13-
<groupId>org.springframework.boot</groupId>
14-
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>3.0.2</version>
16-
<relativePath/> <!-- lookup parent from repository -->
17-
</parent>
18-
1912
<properties>
20-
<java.version>11</java.version>
21-
<spring-zeebe.version>8.1.17</spring-zeebe.version>
22-
<zeebe.version>8.5.6</zeebe.version>
13+
<maven.compiler.release>21</maven.compiler.release>
14+
<zeebe.version>8.6.3</zeebe.version>
2315
</properties>
2416

2517
<dependencies>
26-
<dependency>
27-
<groupId>org.springframework.boot</groupId>
28-
<artifactId>spring-boot-starter</artifactId>
29-
</dependency>
30-
3118
<dependency>
3219
<groupId>io.camunda</groupId>
33-
<artifactId>zeebe-client-java</artifactId>
20+
<artifactId>spring-boot-starter-camunda-sdk</artifactId>
3421
<version>${zeebe.version}</version>
3522
</dependency>
36-
3723
<dependency>
38-
<groupId>io.camunda</groupId>
39-
<artifactId>spring-zeebe-starter</artifactId>
40-
<version>${spring-zeebe.version}</version>
24+
<groupId>org.slf4j</groupId>
25+
<artifactId>slf4j-simple</artifactId>
26+
<version>2.0.16</version>
4127
</dependency>
42-
4328
</dependencies>
4429

4530
<build>
4631
<plugins>
4732
<plugin>
4833
<groupId>org.springframework.boot</groupId>
4934
<artifactId>spring-boot-maven-plugin</artifactId>
35+
<version>3.3.4</version>
5036
</plugin>
5137
</plugins>
5238
</build>

spring/src/main/java/io/camunda/getstarted/ProcessApplication.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package io.camunda.getstarted;
22

3+
import io.camunda.zeebe.client.ZeebeClient;
34
import io.camunda.zeebe.client.api.response.ProcessInstanceEvent;
4-
import io.camunda.zeebe.spring.client.EnableZeebeClient;
55
import io.camunda.zeebe.spring.client.annotation.Deployment;
6-
import io.camunda.zeebe.spring.client.lifecycle.ZeebeClientLifecycle;
76
import org.slf4j.Logger;
87
import org.slf4j.LoggerFactory;
98
import org.springframework.beans.factory.annotation.Autowired;
@@ -14,7 +13,6 @@
1413
import java.util.Map;
1514

1615
@SpringBootApplication
17-
@EnableZeebeClient
1816
@Deployment(resources = "classpath:send-email.bpmn")
1917
public class ProcessApplication implements CommandLineRunner {
2018

@@ -25,7 +23,7 @@ public static void main(String[] args) {
2523
}
2624

2725
@Autowired
28-
private ZeebeClientLifecycle client;
26+
private ZeebeClient client;
2927

3028
@Override
3129
public void run(final String... args) throws Exception {

0 commit comments

Comments
 (0)