Skip to content

Commit

Permalink
chore: support Connector SDK 0.11 (#47)
Browse files Browse the repository at this point in the history
* chore: support Connector SDK 0.11

* fix property name
  • Loading branch information
chillleader committed Jul 13, 2023
1 parent 690efb8 commit 59c9e33
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<!-- connector SDK version -->
<version.connector-core>0.10.0</version.connector-core>
<version.connector-core>0.11.2</version.connector-core>
<version.connector-runtime>0.21.3</version.connector-runtime>

<!-- external libraries -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ public class MyConnectorExecutable implements InboundConnectorExecutable {

@Override
public void activate(InboundConnectorContext connectorContext) {
MyConnectorProperties props = connectorContext.getPropertiesAsType(MyConnectorProperties.class);

connectorContext.replaceSecrets(props);
connectorContext.validate(props);

MyConnectorProperties props = connectorContext.bindProperties(MyConnectorProperties.class);
this.connectorContext = connectorContext;

subscription = new MockSubscription(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.camunda.connector.inbound;

import io.camunda.connector.api.annotation.Secret;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
Expand All @@ -9,7 +8,6 @@
* Configuration properties for inbound Connector
*/
public class MyConnectorProperties {
@Secret
@NotNull
private String sender;

Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Configuration for running connectors locally in bundle with connector-runtime
server.port=9898
zeebe.broker.gateway-address=localhost:26500
zeebe.client.broker.gateway-address=localhost:26500
zeebe.client.security.plaintext=true

camunda.connector.polling.enabled=true
Expand Down

0 comments on commit 59c9e33

Please sign in to comment.