Skip to content

Commit

Permalink
chore: update spring sample to use official spring sdk 8.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
megglos committed Oct 11, 2024
1 parent c660e58 commit 380fde8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 31 deletions.
12 changes: 6 additions & 6 deletions spring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ This guide explains how to setup a Spring Boot project to automate a process usi

# Install dependencies

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

```
<dependency>
<groupId>io.camunda</groupId>
<artifactId>spring-zeebe-starter</artifactId>
<version>8.5.6</version>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>spring-boot-starter-camunda-sdk</artifactId>
<version>${zeebe.version}</version>
</dependency>
```

# Create Client
Expand Down
28 changes: 7 additions & 21 deletions spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,30 @@
<artifactId>camunda-platform-get-started-spring</artifactId>
<version>1.0.0-SNAPSHOT</version>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<properties>
<java.version>11</java.version>
<spring-zeebe.version>8.1.17</spring-zeebe.version>
<zeebe.version>8.5.6</zeebe.version>
<maven.compiler.release>21</maven.compiler.release>
<zeebe.version>8.6.3</zeebe.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
<artifactId>spring-boot-starter-camunda-sdk</artifactId>
<version>${zeebe.version}</version>
</dependency>

<dependency>
<groupId>io.camunda</groupId>
<artifactId>spring-zeebe-starter</artifactId>
<version>${spring-zeebe.version}</version>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.16</version>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.3.4</version>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package io.camunda.getstarted;

import io.camunda.zeebe.client.ZeebeClient;
import io.camunda.zeebe.client.api.response.ProcessInstanceEvent;
import io.camunda.zeebe.spring.client.EnableZeebeClient;
import io.camunda.zeebe.spring.client.annotation.Deployment;
import io.camunda.zeebe.spring.client.lifecycle.ZeebeClientLifecycle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -14,7 +13,6 @@
import java.util.Map;

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

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

@Autowired
private ZeebeClientLifecycle client;
private ZeebeClient client;

@Override
public void run(final String... args) throws Exception {
Expand Down

0 comments on commit 380fde8

Please sign in to comment.