From 2d7784e8fd97cdc9fc1a121a9847df76044dc0f4 Mon Sep 17 00:00:00 2001 From: Jonathan Lukas Date: Fri, 27 Oct 2023 10:59:28 +0200 Subject: [PATCH] moved to apache http client, applied dep mgmt --- .../pom.xml | 2 - .../pom.xml | 66 ++++++++----------- .../pom.xml | 9 +-- .../rest/client/springboot/CamundaApi.java | 2 +- .../rest/client/springboot/AppTest.java | 13 ++++ .../rest/client/springboot/TestApp.java | 11 ++++ pom.xml | 62 ++++++++++++++++- 7 files changed, 120 insertions(+), 45 deletions(-) create mode 100644 camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/AppTest.java create mode 100644 camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/TestApp.java diff --git a/camunda-engine-rest-client-complete-springboot-starter/pom.xml b/camunda-engine-rest-client-complete-springboot-starter/pom.xml index 4c801e6..d48559b 100644 --- a/camunda-engine-rest-client-complete-springboot-starter/pom.xml +++ b/camunda-engine-rest-client-complete-springboot-starter/pom.xml @@ -14,13 +14,11 @@ org.camunda.community camunda-engine-rest-client-openapi-springboot - ${project.version} org.camunda.bpm.springboot camunda-bpm-spring-boot-starter-external-task-client - ${camunda.version} \ No newline at end of file diff --git a/camunda-engine-rest-client-openapi-java/pom.xml b/camunda-engine-rest-client-openapi-java/pom.xml index 5338363..fa5e303 100644 --- a/camunda-engine-rest-client-openapi-java/pom.xml +++ b/camunda-engine-rest-client-openapi-java/pom.xml @@ -10,63 +10,55 @@ camunda-engine-rest-client-openapi-java - - - - com.google.code.gson - gson - 2.9.0 - + + + com.google.code.findbugs jsr305 - 3.0.2 + + - org.threeten - threetenbp - 1.6.0 + org.apache.httpcomponents.client5 + httpclient5 + - com.squareup.okio - okio - 2.10.0 + com.fasterxml.jackson.core + jackson-core - com.squareup.okhttp3 - okhttp - 4.9.3 + com.fasterxml.jackson.core + jackson-annotations - com.squareup.okhttp3 - logging-interceptor - 4.9.3 + com.fasterxml.jackson.core + jackson-databind - - javax.annotation - javax.annotation-api - 1.3.2 + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider - - io.swagger - swagger-annotations - 1.6.6 + com.fasterxml.jackson.datatype + jackson-datatype-jsr310 - - io.gsonfire - gson-fire - 1.8.5 + org.openapitools + jackson-databind-nullable - + + jakarta.annotation + jakarta.annotation-api + provided + + junit junit - 4.13.2 test @@ -76,7 +68,6 @@ org.openapitools openapi-generator-maven-plugin - 5.1.0 @@ -90,8 +81,9 @@ org.camunda.community.rest.client.api org.camunda.community.rest.client.invoker org.camunda.community.rest.client.dto - legacy - src/gen/java/main + apache-httpclient + java8 + ${project.build.directory}/generated-test-sources/openapi diff --git a/camunda-engine-rest-client-openapi-springboot/pom.xml b/camunda-engine-rest-client-openapi-springboot/pom.xml index f2de58a..6ee9ce4 100644 --- a/camunda-engine-rest-client-openapi-springboot/pom.xml +++ b/camunda-engine-rest-client-openapi-springboot/pom.xml @@ -13,22 +13,23 @@ org.camunda.community camunda-engine-rest-client-openapi-java - ${project.version} org.springframework.boot spring-boot-starter - ${springboot.version} commons-io commons-io - 2.11.0 javax.xml.bind jaxb-api - 2.3.1 + + + org.springframework.boot + spring-boot-starter-test + test \ No newline at end of file diff --git a/camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaApi.java b/camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaApi.java index 43fa69d..01b3c87 100644 --- a/camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaApi.java +++ b/camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaApi.java @@ -25,7 +25,7 @@ public BatchApi batchApi() { @Bean public ConditionApi conditionApi() { - return new ConditionApi(); + return new ConditionApi(apiClient); } @Bean diff --git a/camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/AppTest.java b/camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/AppTest.java new file mode 100644 index 0000000..fa20471 --- /dev/null +++ b/camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/AppTest.java @@ -0,0 +1,13 @@ +package org.camunda.community.rest.client.springboot; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +public class AppTest { + + @Test + void shouldRun() { + + } +} diff --git a/camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/TestApp.java b/camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/TestApp.java new file mode 100644 index 0000000..f1f9c7a --- /dev/null +++ b/camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/TestApp.java @@ -0,0 +1,11 @@ +package org.camunda.community.rest.client.springboot; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class TestApp { + public static void main(String[] args) { + SpringApplication.run(TestApp.class, args); + } +} diff --git a/pom.xml b/pom.xml index ed3bd76..7243280 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.camunda.community community-hub-release-parent - 1.4.2 + 1.4.3 org.camunda.community @@ -29,6 +29,66 @@ 2.7.4 + + + + org.springframework.boot + spring-boot-dependencies + ${springboot.version} + pom + import + + + org.camunda.bpm + camunda-bom + ${camunda.version} + pom + import + + + org.openapitools + jackson-databind-nullable + 0.2.6 + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + commons-io + commons-io + 2.14.0 + + + org.camunda.community + camunda-engine-rest-client-openapi-java + ${project.version} + + + org.camunda.community + camunda-engine-rest-client-openapi-springboot + ${project.version} + + + + + + + + org.openapitools + openapi-generator-maven-plugin + 7.0.1 + + + org.apache.maven.plugins + maven-surefire-plugin + 3.2.1 + + + + + camunda-engine-rest-client-openapi-java camunda-engine-rest-client-openapi-springboot