├── .github └── workflows │ ├── maven-build.yml │ └── maven-release.yml ├── .gitignore ├── LICENSE ├── README.md ├── camunda-engine-rest-client-complete-springboot-starter └── pom.xml ├── camunda-engine-rest-client-openapi-java └── pom.xml ├── camunda-engine-rest-client-openapi-springboot ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── camunda │ │ │ └── community │ │ │ └── rest │ │ │ └── client │ │ │ └── springboot │ │ │ ├── CamundaApi.java │ │ │ ├── CamundaAutodeploymentProperties.java │ │ │ ├── CamundaHistoryApi.java │ │ │ ├── CamundaOpenApiStarter.java │ │ │ └── CamundaProcessAutodeployment.java │ └── resources │ │ └── META-INF │ │ └── spring │ │ └── org.springframework.boot.autoconfigure.AutoConfiguration.imports │ └── test │ └── java │ └── org │ └── camunda │ └── community │ └── rest │ └── client │ └── springboot │ ├── AppTest.java │ ├── CamundaApiTest.java │ ├── CamundaOpenApiStarterTest.java │ ├── LegacyPropertiesTest.java │ └── TestApp.java ├── pom.xml └── renovate.json /.github/workflows/maven-build.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: [ pull_request, workflow_dispatch ] 3 | jobs: 4 | Build: 5 | runs-on: ubuntu-latest 6 | permissions: 7 | checks: write 8 | pull-requests: write 9 | steps: 10 | - name: Checkout 11 | uses: actions/checkout@v4 12 | - name: Setup Java 13 | uses: actions/setup-java@v4 14 | with: 15 | distribution: 'temurin' 16 | java-version: '17' 17 | cache: 'maven' 18 | - name: Login to GitHub Container Registry 19 | uses: docker/login-action@v3 20 | with: 21 | registry: ghcr.io 22 | username: ${{ github.actor }} 23 | password: ${{ secrets.GITHUB_TOKEN }} 24 | - name: Build 25 | run: mvn verify -PcheckFormat -B 26 | - name: Publish Unit Test Results 27 | id: publish 28 | uses: EnricoMi/publish-unit-test-result-action@v2 29 | if: always() 30 | with: 31 | files: '**/target/surefire-reports/*.xml' -------------------------------------------------------------------------------- /.github/workflows/maven-release.yml: -------------------------------------------------------------------------------- 1 | name: Deploy artifacts with Maven 2 | on: 3 | push: 4 | branches: 5 | - main 6 | - release/** 7 | release: 8 | types: [published] 9 | jobs: 10 | publish: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Check out code 14 | uses: actions/checkout@v4 15 | - name: Set up Java environment 16 | uses: actions/setup-java@v4 17 | with: 18 | java-version: 17 19 | distribution: temurin 20 | cache: maven 21 | gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_SEC }} 22 | gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE 23 | - name: Deploy SNAPSHOT / Release 24 | uses: camunda-community-hub/community-action-maven-release@v1 25 | with: 26 | release-version: ${{ github.event.release.tag_name }} 27 | nexus-usr: ${{ secrets.NEXUS_USR }} 28 | nexus-psw: ${{ secrets.NEXUS_PSW }} 29 | maven-usr: ${{ secrets.COMMUNITY_HUB_MAVEN_CENTRAL_OSS_USR }} 30 | maven-psw: ${{ secrets.COMMUNITY_HUB_MAVEN_CENTRAL_OSS_PSW }} 31 | maven-gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }} 32 | maven-auto-release-after-close: true 33 | github-token: ${{ secrets.GITHUB_TOKEN }} 34 | branch: ${{ github.event.release.target_commitish || github.ref_name }} 35 | id: release 36 | - if: github.event.release 37 | name: Attach artifacts to GitHub Release (Release only) 38 | uses: actions/upload-release-asset@v1 39 | env: 40 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 41 | with: 42 | upload_url: ${{ github.event.release.upload_url }} 43 | asset_path: ${{ steps.release.outputs.artifacts_archive_path }} 44 | asset_name: ${{ steps.release.outputs.artifacts_archive_path }} 45 | asset_content_type: application/zip 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | target 25 | .idea 26 | *.iml 27 | 28 | #eclipse 29 | **.project 30 | **.classpath 31 | **.settings 32 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Camunda Engine OpenAPI REST Client Java and Spring Boot 2 | 3 | [![](https://img.shields.io/badge/Community%20Extension-An%20open%20source%20community%20maintained%20project-FF4700)](https://github.com/camunda-community-hub/community) [![](https://img.shields.io/badge/Lifecycle-Incubating-blue)](https://github.com/Camunda-Community-Hub/community/blob/main/extension-lifecycle.md#incubating-) ![Compatible with: Camunda Platform 7](https://img.shields.io/badge/Compatible%20with-Camunda%20Platform%207-26d07c) 4 | 5 | This community extension is a convenience wrapper around the generated Java client from the Camunda Platform 7.x OpenAPI spec. 6 | 7 | ## Example application 8 | 9 | An example application using this community extension in a Spring Boot context can be found here: https://github.com/berndruecker/camunda-platform-remote-spring-boot-example 10 | 11 | ## Using the client 12 | 13 | The camunda endpoint in the `ApiClient` is by default `http://localhost:8080/engine-rest`, if you use a diffrent path then set it through *`setBasePath`* method of the `ApiClient`. 14 | 15 | ### Plain Java 16 | 17 | In a plain Java project you can simply add this dependency (**please make sure to use the latest version as there were a couple of important bug fixes lately**): 18 | 19 | ``` 20 | 21 | org.camunda.community 22 | camunda-engine-rest-client-openapi-java 23 | 7.23.0 24 | 25 | ``` 26 | 27 | Now you can use the `ApiClient` and various generated artifacts, for example: 28 | 29 | ``` 30 | public static void main(String[] args) throws ApiException { 31 | ApiClient client = new ApiClient(); 32 | client.setBasePath("http://localhost:8080/engine-rest"); 33 | 34 | new DeploymentApi(client).createDeployment( 35 | null, 36 | null, 37 | true, 38 | true, 39 | "benchmark", 40 | null, 41 | new File(App.class.getClassLoader().getResource(bpmnXmlPath).getFile()) 42 | ); 43 | System.out.println("DEPLOYED"); 44 | 45 | new ProcessDefinitionApi(client).startProcessInstanceByKey( 46 | processId, 47 | new StartProcessInstanceDto() 48 | .variables(Collections.singletonMap("json", new VariableValueDto().value("test").type("string")))); 49 | 50 | System.out.println("STARTED"); 51 | } 52 | ``` 53 | 54 | ### Spring Boot Starter 55 | 56 | For convenience, there is also a Spring Boot Starter, that 57 | 58 | * Wires the ApiClient and provide all API's 59 | * Autodeploys all BPMN, DMN and form resources it finds on the classpath during startup. 60 | 61 | Add this dependency: 62 | 63 | ``` 64 | 65 | org.camunda.community 66 | camunda-engine-rest-client-openapi-springboot 67 | 7.20.0 68 | 69 | ``` 70 | 71 | You can configure the Camunda *endpoint* via your `application.properties` and initialize the client been like this: 72 | 73 | ``` 74 | camunda.bpm.client.base-url: http://localhost:8080/engine-rest 75 | ``` 76 | 77 | And then simply inject the API, for example: 78 | 79 | ``` 80 | @RestController 81 | public class ExampleRestEndpoint { 82 | 83 | @Autowired 84 | private ProcessDefinitionApi processDefinitionApi; 85 | 86 | @PutMapping("/start") 87 | public ResponseEntity startProcess(ServerWebExchange exchange) throws ApiException { 88 | // ... 89 | 90 | // start process instance 91 | ProcessInstanceWithVariablesDto processInstance = processDefinitionApi.startProcessInstanceByKey( 92 | ProcessConstants.PROCESS_KEY, 93 | new StartProcessInstanceDto().variables(variables)); 94 | // ... 95 | ``` 96 | 97 | #### Auto Deployment 98 | 99 | You can auto-deploy resources from your project, like BPMN processes. As default, all `.bpmn`, `.dmn`, and `.form` files are picked up and deployed. The pattern for resource files can be configured: 100 | 101 | ``` 102 | camunda.autoDeploy.bpmnResources: 'classpath*:**/*.bpmn' 103 | camunda.autoDeploy.dmnResources: 'classpath*:**/*.dmn' 104 | camunda.autoDeploy.formResources: 'classpath*:**/*.form' 105 | ``` 106 | 107 | You can disable auto deployment (which is enabled by default): 108 | 109 | ``` 110 | camunda.autoDeploy.enabled: false 111 | ``` 112 | 113 | If you want to disable service start failure if it fails during deployment of the resource (which is enabled by default): 114 | ``` 115 | camunda.autoDeploy.failStartupOnError: false 116 | ``` 117 | 118 | ### Spring Boot OpenAPI + External Task Bundle 119 | 120 | Most often you might also want to use the OpenAPI, but also leverage the [Camunda External Task Client as Spring Boot Starter](https://github.com/camunda/camunda-bpm-platform/tree/master/spring-boot-starter/starter-client). To do so you can simply add this convenience library which bundles both: 121 | 122 | ``` 123 | 124 | org.camunda.community 125 | camunda-engine-rest-client-complete-springboot-starter 126 | 7.20.0 127 | 128 | ``` 129 | 130 | Now you further simply add workers, for example: 131 | 132 | ``` 133 | @Configuration 134 | @ExternalTaskSubscription("check-number") 135 | public class ExampleCheckNumberWorker implements ExternalTaskHandler { 136 | 137 | private final static Logger LOGGER = Logger.getLogger(ExampleCheckNumberWorker.class.getName()); 138 | 139 | @Override 140 | public void execute(ExternalTask externalTask, ExternalTaskService externalTaskService) { 141 | // ... 142 | externalTaskService.complete(externalTask); 143 | } 144 | ``` 145 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-complete-springboot-starter/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | 5 | org.camunda.community 6 | camunda-engine-rest-client-root 7 | 7.23.0-SNAPSHOT 8 | 9 | 10 | camunda-engine-rest-client-complete-springboot-starter 11 | 12 | 13 | 14 | 15 | org.camunda.community 16 | camunda-engine-rest-client-openapi-springboot 17 | 18 | 19 | 20 | org.camunda.bpm.springboot 21 | camunda-bpm-spring-boot-starter-external-task-client 22 | 23 | 24 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-java/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | 6 | org.camunda.community 7 | camunda-engine-rest-client-root 8 | 7.23.0-SNAPSHOT 9 | 10 | 11 | camunda-engine-rest-client-openapi-java 12 | 13 | 14 | 15 | 16 | 17 | com.google.code.findbugs 18 | jsr305 19 | 20 | 21 | 22 | 23 | 24 | org.apache.httpcomponents.client5 25 | httpclient5 26 | 27 | 28 | 29 | 30 | com.fasterxml.jackson.core 31 | jackson-core 32 | 33 | 34 | com.fasterxml.jackson.core 35 | jackson-annotations 36 | 37 | 38 | com.fasterxml.jackson.core 39 | jackson-databind 40 | 41 | 42 | com.fasterxml.jackson.jaxrs 43 | jackson-jaxrs-json-provider 44 | 45 | 46 | com.fasterxml.jackson.datatype 47 | jackson-datatype-jsr310 48 | 49 | 50 | org.openapitools 51 | jackson-databind-nullable 52 | 53 | 54 | jakarta.annotation 55 | jakarta.annotation-api 56 | provided 57 | 58 | 59 | 60 | org.junit.jupiter 61 | junit-jupiter-api 62 | test 63 | 64 | 65 | 66 | 67 | 68 | 69 | org.openapitools 70 | openapi-generator-maven-plugin 71 | 72 | 73 | 74 | generate 75 | 76 | 77 | /openapi.json 78 | java 79 | 80 | org.camunda.community.rest.client 81 | org.camunda.community.rest.client.api 82 | org.camunda.community.rest.client.invoker 83 | org.camunda.community.rest.client.dto 84 | apache-httpclient 85 | java8 86 | ${project.build.directory}/generated-test-sources/openapi 87 | 88 | 89 | 90 | 91 | 92 | 93 | org.camunda.bpm 94 | camunda-engine-rest-openapi 95 | ${camunda.version} 96 | 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | 5 | org.camunda.community 6 | camunda-engine-rest-client-root 7 | 7.23.0-SNAPSHOT 8 | 9 | 10 | camunda-engine-rest-client-openapi-springboot 11 | 12 | 13 | 14 | org.camunda.community 15 | camunda-engine-rest-client-openapi-java 16 | 17 | 18 | org.springframework.boot 19 | spring-boot-starter 20 | 21 | 22 | commons-io 23 | commons-io 24 | 25 | 26 | javax.xml.bind 27 | jaxb-api 28 | 29 | 30 | org.springframework.boot 31 | spring-boot-starter-test 32 | test 33 | 34 | 35 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaApi.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import org.camunda.community.rest.client.api.*; 4 | import org.camunda.community.rest.client.invoker.ApiClient; 5 | import org.springframework.boot.autoconfigure.AutoConfiguration; 6 | import org.springframework.context.annotation.Bean; 7 | 8 | @AutoConfiguration 9 | public class CamundaApi { 10 | 11 | private final ApiClient apiClient; 12 | 13 | public CamundaApi(ApiClient apiClient) { 14 | this.apiClient = apiClient; 15 | } 16 | 17 | @Bean 18 | public AuthorizationApi authorizationApi() { 19 | return new AuthorizationApi(apiClient); 20 | } 21 | 22 | @Bean 23 | public BatchApi batchApi() { 24 | return new BatchApi(apiClient); 25 | } 26 | 27 | @Bean 28 | public ConditionApi conditionApi() { 29 | return new ConditionApi(apiClient); 30 | } 31 | 32 | @Bean 33 | public DecisionDefinitionApi decisionDefinitionApi() { 34 | return new DecisionDefinitionApi(apiClient); 35 | } 36 | 37 | @Bean 38 | public DecisionRequirementsDefinitionApi decisionRequirementsDefinitionApi() { 39 | return new DecisionRequirementsDefinitionApi(apiClient); 40 | } 41 | 42 | @Bean 43 | public DeploymentApi deploymentApi() { 44 | return new DeploymentApi(apiClient); 45 | } 46 | 47 | @Bean 48 | public EngineApi engineApi() { 49 | return new EngineApi(apiClient); 50 | } 51 | 52 | @Bean 53 | public EventSubscriptionApi eventSubscriptionApi() { 54 | return new EventSubscriptionApi(apiClient); 55 | } 56 | 57 | @Bean 58 | public ExecutionApi executionApi() { 59 | return new ExecutionApi(apiClient); 60 | } 61 | 62 | @Bean 63 | public ExternalTaskApi externalTaskApi() { 64 | return new ExternalTaskApi(apiClient); 65 | } 66 | 67 | @Bean 68 | public FilterApi filterApi() { 69 | return new FilterApi(apiClient); 70 | } 71 | 72 | @Bean 73 | public GroupApi groupApi() { 74 | return new GroupApi(apiClient); 75 | } 76 | 77 | @Bean 78 | public HistoryCleanupApi historyCleanupApi() { 79 | return new HistoryCleanupApi(apiClient); 80 | } 81 | 82 | @Bean 83 | public IdentityApi identityApi() { 84 | return new IdentityApi(apiClient); 85 | } 86 | 87 | @Bean 88 | public IncidentApi incidentApi() { 89 | return new IncidentApi(apiClient); 90 | } 91 | 92 | @Bean 93 | public JobApi jobApi() { 94 | return new JobApi(apiClient); 95 | } 96 | 97 | @Bean 98 | public JobDefinitionApi jobDefinitionApi() { 99 | return new JobDefinitionApi(apiClient); 100 | } 101 | 102 | @Bean 103 | public MessageApi messageApi() { 104 | return new MessageApi(apiClient); 105 | } 106 | 107 | @Bean 108 | public MetricsApi metricsApi() { 109 | return new MetricsApi(apiClient); 110 | } 111 | 112 | @Bean 113 | public MigrationApi migrationApi() { 114 | return new MigrationApi(apiClient); 115 | } 116 | 117 | @Bean 118 | public ModificationApi modificationApi() { 119 | return new ModificationApi(apiClient); 120 | } 121 | 122 | @Bean 123 | public ProcessDefinitionApi processDefinitionApi() { 124 | return new ProcessDefinitionApi(apiClient); 125 | } 126 | 127 | @Bean 128 | public ProcessInstanceApi processInstanceApi() { 129 | return new ProcessInstanceApi(apiClient); 130 | } 131 | 132 | @Bean 133 | public SchemaLogApi schemaLogApi() { 134 | return new SchemaLogApi(apiClient); 135 | } 136 | 137 | @Bean 138 | public SignalApi signalApi() { 139 | return new SignalApi(apiClient); 140 | } 141 | 142 | @Bean 143 | public TaskApi taskApi() { 144 | return new TaskApi(apiClient); 145 | } 146 | 147 | @Bean 148 | public TaskAttachmentApi taskAttachmentApi() { 149 | return new TaskAttachmentApi(apiClient); 150 | } 151 | 152 | @Bean 153 | public TaskCommentApi taskCommentApi() { 154 | return new TaskCommentApi(apiClient); 155 | } 156 | 157 | @Bean 158 | public TaskIdentityLinkApi taskIdentityLinkApi() { 159 | return new TaskIdentityLinkApi(apiClient); 160 | } 161 | 162 | @Bean 163 | public TaskVariableApi taskVariableApi() { 164 | return new TaskVariableApi(apiClient); 165 | } 166 | 167 | @Bean 168 | public TaskLocalVariableApi taskLocalVariableApi() { 169 | return new TaskLocalVariableApi(apiClient); 170 | } 171 | 172 | @Bean 173 | public TelemetryApi telemetryApi() { 174 | return new TelemetryApi(apiClient); 175 | } 176 | 177 | @Bean 178 | public TenantApi tenantApi() { 179 | return new TenantApi(apiClient); 180 | } 181 | 182 | @Bean 183 | public UserApi userApi() { 184 | return new UserApi(apiClient); 185 | } 186 | 187 | @Bean 188 | public VariableInstanceApi variableInstanceApi() { 189 | return new VariableInstanceApi(apiClient); 190 | } 191 | 192 | @Bean 193 | public VersionApi versionApi() { 194 | return new VersionApi(apiClient); 195 | } 196 | 197 | @Bean 198 | public ProcessInstanceCommentApi processInstanceCommentApi() { 199 | return new ProcessInstanceCommentApi(apiClient); 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaAutodeploymentProperties.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import org.springframework.boot.context.properties.ConfigurationProperties; 4 | 5 | @ConfigurationProperties("camunda.auto-deploy") 6 | public class CamundaAutodeploymentProperties { 7 | private String bpmnResources = "classpath*:**/*.bpmn"; 8 | private String dmnResources = "classpath*:**/*.dmn"; 9 | private String formResources = "classpath*:**/*.form"; 10 | private boolean enabled = true; 11 | private boolean failStartupOnError = true; 12 | 13 | public String getBpmnResources() { 14 | return bpmnResources; 15 | } 16 | 17 | public void setBpmnResources(String bpmnResources) { 18 | this.bpmnResources = bpmnResources; 19 | } 20 | 21 | public String getDmnResources() { 22 | return dmnResources; 23 | } 24 | 25 | public void setDmnResources(String dmnResources) { 26 | this.dmnResources = dmnResources; 27 | } 28 | 29 | public String getFormResources() { 30 | return formResources; 31 | } 32 | 33 | public void setFormResources(String formResources) { 34 | this.formResources = formResources; 35 | } 36 | 37 | public boolean isEnabled() { 38 | return enabled; 39 | } 40 | 41 | public void setEnabled(boolean enabled) { 42 | this.enabled = enabled; 43 | } 44 | 45 | public boolean isFailStartupOnError() { 46 | return failStartupOnError; 47 | } 48 | 49 | public void setFailStartupOnError(boolean failStartupOnError) { 50 | this.failStartupOnError = failStartupOnError; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaHistoryApi.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import org.camunda.community.rest.client.api.*; 4 | import org.camunda.community.rest.client.invoker.ApiClient; 5 | import org.springframework.boot.autoconfigure.AutoConfiguration; 6 | import org.springframework.context.annotation.Bean; 7 | 8 | @AutoConfiguration 9 | public class CamundaHistoryApi { 10 | 11 | private final ApiClient apiClient; 12 | 13 | public CamundaHistoryApi(ApiClient apiClient) { 14 | this.apiClient = apiClient; 15 | } 16 | 17 | @Bean 18 | public HistoricActivityInstanceApi historicActivityInstanceApi() { 19 | return new HistoricActivityInstanceApi(apiClient); 20 | } 21 | 22 | @Bean 23 | public HistoricBatchApi historicBatchApi() { 24 | return new HistoricBatchApi(apiClient); 25 | } 26 | 27 | @Bean 28 | public HistoricDecisionDefinitionApi historicDecisionDefinitionApi() { 29 | return new HistoricDecisionDefinitionApi(apiClient); 30 | } 31 | 32 | @Bean 33 | public HistoricDecisionInstanceApi historicDecisionInstanceApi() { 34 | return new HistoricDecisionInstanceApi(apiClient); 35 | } 36 | 37 | @Bean 38 | public HistoricDecisionRequirementsDefinitionApi historicDecisionRequirementsDefinitionApi() { 39 | return new HistoricDecisionRequirementsDefinitionApi(apiClient); 40 | } 41 | 42 | @Bean 43 | public HistoricDetailApi historicDetailApi() { 44 | return new HistoricDetailApi(apiClient); 45 | } 46 | 47 | @Bean 48 | public HistoricExternalTaskLogApi historicExternalTaskLogApi() { 49 | return new HistoricExternalTaskLogApi(apiClient); 50 | } 51 | 52 | @Bean 53 | public HistoricIdentityLinkLogApi historicIdentityLinkLogApi() { 54 | return new HistoricIdentityLinkLogApi(apiClient); 55 | } 56 | 57 | @Bean 58 | public HistoricIncidentApi historicIncidentApi() { 59 | return new HistoricIncidentApi(apiClient); 60 | } 61 | 62 | @Bean 63 | public HistoricJobLogApi historicJobLogApi() { 64 | return new HistoricJobLogApi(apiClient); 65 | } 66 | 67 | @Bean 68 | public HistoricProcessDefinitionApi historicProcessDefinitionApi() { 69 | return new HistoricProcessDefinitionApi(apiClient); 70 | } 71 | 72 | @Bean 73 | public HistoricProcessInstanceApi historicProcessInstanceApi() { 74 | return new HistoricProcessInstanceApi(apiClient); 75 | } 76 | 77 | @Bean 78 | public HistoricTaskInstanceApi historicTaskInstanceApi() { 79 | return new HistoricTaskInstanceApi(apiClient); 80 | } 81 | 82 | @Bean 83 | public HistoricUserOperationLogApi historicTUserOperationLogApi() { 84 | return new HistoricUserOperationLogApi(apiClient); 85 | } 86 | 87 | @Bean 88 | public HistoricVariableInstanceApi historicVariableInstanceApi() { 89 | return new HistoricVariableInstanceApi(apiClient); 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaOpenApiStarter.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import org.camunda.community.rest.client.invoker.ApiClient; 4 | import org.springframework.beans.factory.annotation.Value; 5 | import org.springframework.boot.autoconfigure.AutoConfiguration; 6 | import org.springframework.context.annotation.Bean; 7 | 8 | @AutoConfiguration 9 | public class CamundaOpenApiStarter { 10 | 11 | private final String basePath; 12 | private final String username; 13 | private final String password; 14 | 15 | public CamundaOpenApiStarter( 16 | @Value("${camunda.bpm.client.base-url:#{null}}") String basePath, 17 | @Value("${camunda.bpm.client.basic-auth.username:#{null}}") String username, 18 | @Value("${camunda.bpm.client.basic-auth.password:#{null}}") String password) { 19 | this.basePath = basePath; 20 | this.username = username; 21 | this.password = password; 22 | } 23 | 24 | public String getBasePath() { 25 | return basePath; 26 | } 27 | 28 | public String getUsername() { 29 | return username; 30 | } 31 | 32 | public String getPassword() { 33 | return password; 34 | } 35 | 36 | @Bean 37 | public ApiClient createApiClient() { 38 | ApiClient client = new ApiClient(); 39 | if (basePath != null) { 40 | client.setBasePath(basePath); 41 | } 42 | if (username != null) { 43 | client.setUsername(username); 44 | } 45 | if (password != null) { 46 | client.setPassword(password); 47 | } 48 | return client; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/main/java/org/camunda/community/rest/client/springboot/CamundaProcessAutodeployment.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import java.io.File; 4 | import java.io.FileOutputStream; 5 | import java.io.IOException; 6 | import java.util.Arrays; 7 | import java.util.List; 8 | import org.apache.commons.io.FileUtils; 9 | import org.apache.commons.io.IOUtils; 10 | import org.camunda.community.rest.client.api.DeploymentApi; 11 | import org.camunda.community.rest.client.invoker.ApiException; 12 | import org.slf4j.Logger; 13 | import org.slf4j.LoggerFactory; 14 | import org.springframework.beans.factory.annotation.Value; 15 | import org.springframework.boot.autoconfigure.AutoConfiguration; 16 | import org.springframework.boot.context.event.ApplicationStartedEvent; 17 | import org.springframework.boot.context.properties.EnableConfigurationProperties; 18 | import org.springframework.context.event.EventListener; 19 | import org.springframework.core.io.Resource; 20 | import org.springframework.core.io.support.ResourcePatternResolver; 21 | import org.springframework.util.DigestUtils; 22 | 23 | /** Auto deploys all Camunda resources found on classpath during startup of the application */ 24 | @AutoConfiguration 25 | @EnableConfigurationProperties(CamundaAutodeploymentProperties.class) 26 | public class CamundaProcessAutodeployment { 27 | 28 | private static final Logger logger = LoggerFactory.getLogger(CamundaProcessAutodeployment.class); 29 | private final DeploymentApi deploymentApi; 30 | private final ResourcePatternResolver patternResolver; 31 | private final CamundaAutodeploymentProperties properties; 32 | private final String applicationName; 33 | 34 | public CamundaProcessAutodeployment( 35 | DeploymentApi deploymentApi, 36 | ResourcePatternResolver patternResolver, 37 | CamundaAutodeploymentProperties properties, 38 | @Value("${spring.application.name:spring-app}") String applicationName) { 39 | this.deploymentApi = deploymentApi; 40 | this.patternResolver = patternResolver; 41 | this.properties = properties; 42 | this.applicationName = applicationName; 43 | } 44 | 45 | // TODO Possible extension: Provide a @Deployment annotation like Spring Zeebe 46 | @EventListener(ApplicationStartedEvent.class) 47 | public void deployCamundaResources() throws IOException, ApiException { 48 | if (!properties.isEnabled()) { 49 | return; 50 | } 51 | deployResources( 52 | Arrays.asList(patternResolver.getResources(properties.getBpmnResources())), "bpmn"); 53 | deployResources( 54 | Arrays.asList(patternResolver.getResources(properties.getDmnResources())), "dmn"); 55 | deployResources( 56 | Arrays.asList(patternResolver.getResources(properties.getFormResources())), "form"); 57 | } 58 | 59 | private void deployResources(List resourcesToDeploy, String type) 60 | throws IOException, ApiException { 61 | logger.info("Found resources for deployment of type " + type + ": " + resourcesToDeploy); 62 | for (Resource camundaResource : resourcesToDeploy) { 63 | // We have to create a tmpFile because we need to read the files via InputStream to work also 64 | // in a jar-packed environment 65 | // but the OpenAPI will need a File. 66 | // We still have to set the file ending correct in the temp file 67 | // (because otherwise the deployer will not pick it up as e.g. BPMN file) 68 | try { 69 | String tempDirectoryName = FileUtils.getTempDirectory().getAbsolutePath(); 70 | String filename = getResourceFilename(camundaResource, type); 71 | final File tempFile = new File(tempDirectoryName + File.separator + filename); 72 | tempFile.deleteOnExit(); 73 | try (FileOutputStream out = new FileOutputStream(tempFile)) { 74 | IOUtils.copy(camundaResource.getInputStream(), out); 75 | } 76 | logger.info(" - Now deploying: " + camundaResource); 77 | deploymentApi.createDeployment( 78 | null, 79 | null, 80 | true, // changedOnly 81 | true, // duplicateFiltering 82 | applicationName + "-" + filename, // deploymentName 83 | null, 84 | tempFile); 85 | } catch (Exception exception) { 86 | logger.error( 87 | "Error Deploying resources for deployment of type " + type + ": " + resourcesToDeploy); 88 | if (properties.isFailStartupOnError()) { 89 | throw exception; 90 | } 91 | } 92 | // deploying the files one by one because of limitation of OpenAPI at the moment 93 | // see https://jira.camunda.com/browse/CAM-13105 94 | } 95 | } 96 | 97 | private String getResourceFilename(Resource camundaResource, String type) throws IOException { 98 | if (camundaResource.getFilename() != null) { 99 | return camundaResource.getFilename(); 100 | } else { 101 | return DigestUtils.md5DigestAsHex(camundaResource.getInputStream()) + '.' + type; 102 | } 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports: -------------------------------------------------------------------------------- 1 | org.camunda.community.rest.client.springboot.CamundaOpenApiStarter 2 | org.camunda.community.rest.client.springboot.CamundaApi 3 | org.camunda.community.rest.client.springboot.CamundaHistoryApi 4 | org.camunda.community.rest.client.springboot.CamundaProcessAutodeployment 5 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/AppTest.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import static org.assertj.core.api.Assertions.*; 4 | 5 | import org.junit.jupiter.api.Test; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | 9 | @SpringBootTest 10 | public class AppTest { 11 | @Autowired CamundaAutodeploymentProperties properties; 12 | @Autowired CamundaOpenApiStarter starter; 13 | 14 | @Test 15 | void shouldRun() {} 16 | 17 | @Test 18 | void shouldSetDefaultProperties() { 19 | assertThat(properties.isEnabled()).isTrue(); 20 | assertThat(properties.getBpmnResources()).isEqualTo("classpath*:**/*.bpmn"); 21 | assertThat(properties.getDmnResources()).isEqualTo("classpath*:**/*.dmn"); 22 | assertThat(properties.getFormResources()).isEqualTo("classpath*:**/*.form"); 23 | assertThat(properties.isFailStartupOnError()).isTrue(); 24 | } 25 | 26 | @Test 27 | void shouldNotSetBaseUrl() { 28 | assertThat(starter.getBasePath()).isNull(); 29 | } 30 | 31 | @Test 32 | void shouldNotSetCredentials() { 33 | assertThat(starter.getUsername()).isNull(); 34 | assertThat(starter.getPassword()).isNull(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/CamundaApiTest.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import static org.assertj.core.api.Assertions.*; 4 | 5 | import java.util.List; 6 | import java.util.stream.Stream; 7 | import org.junit.jupiter.api.DynamicTest; 8 | import org.junit.jupiter.api.TestFactory; 9 | import org.junit.platform.commons.support.ReflectionSupport; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.boot.test.context.SpringBootTest; 12 | import org.springframework.context.ApplicationContext; 13 | 14 | @SpringBootTest 15 | public class CamundaApiTest { 16 | @Autowired ApplicationContext applicationContext; 17 | 18 | @TestFactory 19 | Stream shouldHaveAllApisAsBean() { 20 | List> allApis = 21 | ReflectionSupport.findAllClassesInPackage( 22 | "org.camunda.community.rest.client.api", c -> !c.isAnonymousClass(), s -> true); 23 | return allApis.stream() 24 | .map( 25 | c -> 26 | DynamicTest.dynamicTest( 27 | c.getName(), 28 | () -> { 29 | assertThat(applicationContext.getBean(c)).isNotNull(); 30 | })); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/CamundaOpenApiStarterTest.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import static org.assertj.core.api.Assertions.*; 4 | 5 | import org.junit.jupiter.api.Test; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | 9 | @SpringBootTest( 10 | properties = { 11 | "camunda.bpm.client.basic-auth.username=username", 12 | "camunda.bpm.client.basic-auth.password=password", 13 | "camunda.bpm.client.base-url=http://base-url/engine-rest" 14 | }) 15 | public class CamundaOpenApiStarterTest { 16 | @Autowired CamundaOpenApiStarter starter; 17 | 18 | @Test 19 | void shouldSetBaseUrl() { 20 | assertThat(starter.getBasePath()).isEqualTo("http://base-url/engine-rest"); 21 | } 22 | 23 | @Test 24 | void shouldSetCredentials() { 25 | assertThat(starter.getUsername()).isEqualTo("username"); 26 | assertThat(starter.getPassword()).isEqualTo("password"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/LegacyPropertiesTest.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import static org.assertj.core.api.Assertions.*; 4 | 5 | import org.junit.jupiter.api.Test; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | 9 | @SpringBootTest( 10 | properties = { 11 | "camunda.autoDeploy.bpmnResources=custom", 12 | "camunda.autoDeploy.dmnResources=custom", 13 | "camunda.autoDeploy.formResources=custom", 14 | "camunda.autoDeploy.enabled=false", 15 | "camunda.autoDeploy.failStartupOnError=false" 16 | }) 17 | public class LegacyPropertiesTest { 18 | @Autowired CamundaAutodeploymentProperties properties; 19 | 20 | @Test 21 | void shouldRun() {} 22 | 23 | @Test 24 | void shouldSetLegacyProperties() { 25 | assertThat(properties.isEnabled()).isFalse(); 26 | assertThat(properties.getBpmnResources()).isEqualTo("custom"); 27 | assertThat(properties.getDmnResources()).isEqualTo("custom"); 28 | assertThat(properties.getFormResources()).isEqualTo("custom"); 29 | assertThat(properties.isFailStartupOnError()).isFalse(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /camunda-engine-rest-client-openapi-springboot/src/test/java/org/camunda/community/rest/client/springboot/TestApp.java: -------------------------------------------------------------------------------- 1 | package org.camunda.community.rest.client.springboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class TestApp { 8 | public static void main(String[] args) { 9 | SpringApplication.run(TestApp.class, args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | 4 | 5 | org.camunda.community 6 | community-hub-release-parent 7 | 1.4.4 8 | 9 | 10 | org.camunda.community 11 | camunda-engine-rest-client-root 12 | 7.23.0-SNAPSHOT 13 | pom 14 | 15 | 16 | 17 | Apache License, Version 2.0 18 | http://www.apache.org/licenses/LICENSE-2.0 19 | 20 | 21 | 22 | 23 | UTF-8 24 | 25 | 1.8 26 | 1.8 27 | 28 | 7.23.0 29 | 2.7.18 30 | 31 | 32 | 33 | 34 | 35 | org.springframework.boot 36 | spring-boot-dependencies 37 | ${springboot.version} 38 | pom 39 | import 40 | 41 | 42 | org.camunda.bpm 43 | camunda-bom 44 | ${camunda.version} 45 | pom 46 | import 47 | 48 | 49 | org.openapitools 50 | jackson-databind-nullable 51 | 0.2.6 52 | 53 | 54 | com.google.code.findbugs 55 | jsr305 56 | 3.0.2 57 | 58 | 59 | commons-io 60 | commons-io 61 | 2.19.0 62 | 63 | 64 | org.camunda.community 65 | camunda-engine-rest-client-openapi-java 66 | ${project.version} 67 | 68 | 69 | org.camunda.community 70 | camunda-engine-rest-client-openapi-springboot 71 | ${project.version} 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | org.openapitools 80 | openapi-generator-maven-plugin 81 | 7.12.0 82 | 83 | 84 | org.apache.maven.plugins 85 | maven-surefire-plugin 86 | 3.5.3 87 | 88 | 89 | org.apache.maven.plugins 90 | maven-enforcer-plugin 91 | 3.5.0 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | enforce 103 | 104 | 105 | 106 | 107 | 108 | org.apache.maven.plugins 109 | maven-source-plugin 110 | 3.3.1 111 | 112 | 113 | attach-sources 114 | 115 | jar 116 | 117 | 118 | 119 | 120 | 121 | org.apache.maven.plugins 122 | maven-site-plugin 123 | 3.21.0 124 | 125 | 126 | com.diffplug.spotless 127 | spotless-maven-plugin 128 | 2.44.5 129 | 130 | 131 | 132 | 133 | *.md 134 | .gitignore 135 | 136 | 137 | 138 | 139 | true 140 | 2 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | org.apache.maven.plugins 155 | maven-enforcer-plugin 156 | 157 | 158 | org.apache.maven.plugins 159 | maven-source-plugin 160 | 161 | 162 | attach-sources 163 | 164 | jar 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | camunda-engine-rest-client-openapi-java 174 | camunda-engine-rest-client-openapi-springboot 175 | camunda-engine-rest-client-complete-springboot-starter 176 | 177 | 178 | 179 | 180 | autoFormat 181 | 182 | true 183 | 184 | 185 | 186 | 187 | com.diffplug.spotless 188 | spotless-maven-plugin 189 | 190 | 191 | spotless-format 192 | 193 | apply 194 | 195 | process-sources 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | checkFormat 206 | 207 | 208 | 209 | com.diffplug.spotless 210 | spotless-maven-plugin 211 | 212 | 213 | spotless-check 214 | 215 | check 216 | 217 | validate 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base", 4 | "schedule:automergeNonOfficeHours" 5 | ], 6 | "labels": ["dependencies"], 7 | "packageRules": [ 8 | { 9 | "matchBaseBranches": ["main"], 10 | "matchUpdateTypes": ["minor"], 11 | "automerge": true 12 | }, 13 | { 14 | "matchManagers": ["maven"], 15 | "matchBaseBranches": ["/^release/.*/"], 16 | "matchUpdateTypes": ["major", "minor"], 17 | "enabled": false 18 | }, 19 | { 20 | "matchUpdateTypes": ["patch", "pin", "digest"], 21 | "automerge": true 22 | }, 23 | { 24 | "matchManagers": [ 25 | "maven" 26 | ], 27 | "description" : "Exclude SNAPSHOT versions, renovate may suggest them for pre-release values.", 28 | "matchPackagePatterns": [".*"], 29 | "allowedVersions": "!/-SNAPSHOT$/" 30 | } 31 | ], 32 | "baseBranches": ["main", "/^release/.*/"] 33 | } 34 | --------------------------------------------------------------------------------