Skip to content

Commit

Permalink
fix: use spring-boot-3-style autoconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed May 3, 2023
1 parent b8b1397 commit 5c412d4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
4 changes: 2 additions & 2 deletions bundle/default-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>io.camunda.connector.runtime.ConnectorRuntimeApplication</mainClass>
<mainClass>io.camunda.connector.bundle.ConnectorRuntimeApplication</mainClass>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -131,7 +131,7 @@
<resource>META-INF/io.netty.versions.properties</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>io.camunda.connector.runtime.ConnectorRuntimeApplication</mainClass>
<mainClass>io.camunda.connector.bundle.ConnectorRuntimeApplication</mainClass>
</transformer>
</transformers>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.camunda.connector.runtime;
package io.camunda.connector.bundle;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
20 changes: 13 additions & 7 deletions bundle/default-bundle/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@

server.port=9898
zeebe.broker.gateway-address=localhost:26500
zeebe.client.security.plaintext=true

camunda.connector.polling.enabled=true
camunda.connector.polling.interval=5000

camunda.connector.webhook.enabled=true
#spring.main.web-application-type=none

# uncomment to activate inbound and adjust operate config if necessary
#operate.client.enabled=true
operate.client.enabled=true
# Operate config for use with docker-compose-core.yml
#camunda.operate.client.url=http://localhost:8081
#camunda.operate.client.username=demo
#camunda.operate.client.password=demo
#camunda.connector.webhook.enabled=true
camunda.operate.client.url=http://localhost:8081
camunda.operate.client.username=demo
camunda.operate.client.password=demo
camunda.connector.webhook.enabled=true

logging.level.io.camunda.connector=trace
debug=true
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ camunda.operate.client.url=http://localhost:8081
camunda.operate.client.username=demo
camunda.operate.client.password=demo
camunda.connector.webhook.enabled=true

logging.level.io.camunda.connector=trace
6 changes: 3 additions & 3 deletions spring-boot-starter-camunda-connectors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ It uses the default configuration specified through the `@OutboundConnector` ann

```bash
java -cp 'connector-runtime-VERSION-with-dependencies.jar:connector-http-json-VERSION-with-dependencies.jar' \
io.camunda.connector.runtime.ConnectorRuntimeApplication
io.camunda.connector.bundle.ConnectorRuntimeApplication
```

Note that you need to use `;` instead of `:` on Windows machines:

```bash
java -cp 'connector-runtime-VERSION-with-dependencies.jar;connector-http-json-VERSION-with-dependencies.jar' \
io.camunda.connector.runtime.ConnectorRuntimeApplication
io.camunda.connector.bundle.ConnectorRuntimeApplication
```

#### Manual Discovery
Expand All @@ -195,7 +195,7 @@ CONNECTOR_HTTPJSON_FUNCTION=io.camunda.connector.http.HttpJsonFunction
CONNECTOR_HTTPJSON_TYPE=non-default-httpjson-task-type

java -cp 'connector-runtime-VERSION-with-dependencies.jar:connector-http-json-VERSION-with-dependencies.jar' \
io.camunda.connector.runtime.ConnectorRuntimeApplication
io.camunda.connector.bundle.ConnectorRuntimeApplication
```

### Secrets
Expand Down
4 changes: 2 additions & 2 deletions spring-boot-starter-camunda-connectors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>io.camunda.connector.runtime.ConnectorRuntimeApplication</mainClass>
<mainClass>io.camunda.connector.bundle.ConnectorRuntimeApplication</mainClass>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -147,7 +147,7 @@
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>io.camunda.connector.runtime.ConnectorRuntimeApplication</mainClass>
<mainClass>io.camunda.connector.bundle.ConnectorRuntimeApplication</mainClass>
</transformer>
</transformers>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.camunda.connector.runtime.ConnectorsAutoConfiguration

0 comments on commit 5c412d4

Please sign in to comment.