Skip to content

Commit

Permalink
added clean exit after successful start
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlukas committed Oct 16, 2024
1 parent 316ef83 commit 7385e1a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
compose-file: "./docker/docker-compose.yml"
test-command: "java -jar runtime/target/script-connector-runtime.jar"
- name: try to run connector runtime
run: java -jar runtime/target/script-connector-runtime.jar
run: java -jar runtime/target/script-connector-runtime.jar test
- name: Publish Unit Test Results
id: publish
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<maven.compiler.target>${java.version}</maven.compiler.target>

<version.spring-boot>3.3.4</version.spring-boot>
<version.camunda>8.6.3</version.camunda>
<version.camunda>8.5.8</version.camunda>
<version.camunda-spring>8.5.13</version.camunda-spring>
<version.camunda-connectors>8.6.2</version.camunda-connectors>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
package io.camunda.community.connector.script;

import java.util.Arrays;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
if (Arrays.asList(args).contains("test")) {
System.exit(0);
}
}
}
5 changes: 4 additions & 1 deletion runtime/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ camunda:
enabled: false
webhook:
enabled: false

zeebe:
client:
security:
plaintext: true

0 comments on commit 7385e1a

Please sign in to comment.