From 380fde831e972e3d3a875501e2c21dd0520e6efe Mon Sep 17 00:00:00 2001 From: "Meggle (Sebastian Bathke)" Date: Fri, 11 Oct 2024 20:39:49 +0200 Subject: [PATCH] chore: update spring sample to use official spring sdk 8.6.3 --- spring/README.md | 12 ++++---- spring/pom.xml | 28 +++++-------------- .../getstarted/ProcessApplication.java | 6 ++-- 3 files changed, 15 insertions(+), 31 deletions(-) diff --git a/spring/README.md b/spring/README.md index 538a93f..29ad615 100644 --- a/spring/README.md +++ b/spring/README.md @@ -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. ``` - - io.camunda - spring-zeebe-starter - 8.5.6 - + + io.camunda + spring-boot-starter-camunda-sdk + ${zeebe.version} + ``` # Create Client diff --git a/spring/pom.xml b/spring/pom.xml index 4c7dc57..52d0c67 100644 --- a/spring/pom.xml +++ b/spring/pom.xml @@ -9,37 +9,22 @@ camunda-platform-get-started-spring 1.0.0-SNAPSHOT - - org.springframework.boot - spring-boot-starter-parent - 3.0.2 - - - - 11 - 8.1.17 - 8.5.6 + 21 + 8.6.3 - - org.springframework.boot - spring-boot-starter - - io.camunda - zeebe-client-java + spring-boot-starter-camunda-sdk ${zeebe.version} - - io.camunda - spring-zeebe-starter - ${spring-zeebe.version} + org.slf4j + slf4j-simple + 2.0.16 - @@ -47,6 +32,7 @@ org.springframework.boot spring-boot-maven-plugin + 3.3.4 diff --git a/spring/src/main/java/io/camunda/getstarted/ProcessApplication.java b/spring/src/main/java/io/camunda/getstarted/ProcessApplication.java index 07258eb..e386bfd 100644 --- a/spring/src/main/java/io/camunda/getstarted/ProcessApplication.java +++ b/spring/src/main/java/io/camunda/getstarted/ProcessApplication.java @@ -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; @@ -14,7 +13,6 @@ import java.util.Map; @SpringBootApplication -@EnableZeebeClient @Deployment(resources = "classpath:send-email.bpmn") public class ProcessApplication implements CommandLineRunner { @@ -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 {