Skip to content
Permalink
Browse files
Slack Examples: Moved to 0.9.0
  • Loading branch information
oscerd committed Apr 6, 2021
1 parent 4437d4b commit d2293be9f3c11f7dda83d6782731be108609e2db
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 42 deletions.
@@ -44,8 +44,8 @@ In this example we'll use `/home/oscerd/connectors/`

```
> cd /home/oscerd/connectors/
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-slack-kafka-connector/0.8.0/camel-slack-kafka-connector-0.8.0-package.tar.gz
> untar.gz camel-slack-kafka-connector-0.8.0-package.tar.gz
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-slack-kafka-connector/0.9.0/camel-slack-kafka-connector-0.9.0-package.tar.gz
> untar.gz camel-slack-kafka-connector-0.9.0-package.tar.gz
```

Now it's time to setup the connectors
@@ -149,8 +149,8 @@ So we need to do something like this:

```
> cd my-connectors/
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-slack-kafka-connector/0.8.0/camel-slack-kafka-connector-0.8.0-package.tar.gz
> untar.gz camel-slack-kafka-connector-0.8.0-package.tar.gz
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-slack-kafka-connector/0.9.0/camel-slack-kafka-connector-0.9.0-package.tar.gz
> untar.gz camel-slack-kafka-connector-0.9.0-package.tar.gz
```

Now we can start the build
@@ -175,7 +175,7 @@ You should see something like this:

[source,json,options="nowrap"]
----
[{"class":"org.apache.camel.kafkaconnector.CamelSinkConnector","type":"sink","version":"0.8.0"},{"class":"org.apache.camel.kafkaconnector.CamelSourceConnector","type":"source","version":"0.8.0"},{"class":"org.apache.camel.kafkaconnector.slack.CamelSlackSinkConnector","type":"sink","version":"0.8.0"},{"class":"org.apache.camel.kafkaconnector.slack.CamelSlackSourceConnector","type":"source","version":"0.8.0"},{"class":"org.apache.kafka.connect.file.FileStreamSinkConnector","type":"sink","version":"2.5.0"},{"class":"org.apache.kafka.connect.file.FileStreamSourceConnector","type":"source","version":"2.5.0"},{"class":"org.apache.kafka.connect.mirror.MirrorCheckpointConnector","type":"source","version":"1"},{"class":"org.apache.kafka.connect.mirror.MirrorHeartbeatConnector","type":"source","version":"1"},{"class":"org.apache.kafka.connect.mirror.MirrorSourceConnector","type":"source","version":"1"}]
[{"class":"org.apache.camel.kafkaconnector.CamelSinkConnector","type":"sink","version":"0.9.0"},{"class":"org.apache.camel.kafkaconnector.CamelSourceConnector","type":"source","version":"0.9.0"},{"class":"org.apache.camel.kafkaconnector.slack.CamelSlackSinkConnector","type":"sink","version":"0.9.0"},{"class":"org.apache.camel.kafkaconnector.slack.CamelSlackSourceConnector","type":"source","version":"0.9.0"},{"class":"org.apache.kafka.connect.file.FileStreamSinkConnector","type":"sink","version":"2.5.0"},{"class":"org.apache.kafka.connect.file.FileStreamSourceConnector","type":"source","version":"2.5.0"},{"class":"org.apache.kafka.connect.mirror.MirrorCheckpointConnector","type":"source","version":"1"},{"class":"org.apache.kafka.connect.mirror.MirrorHeartbeatConnector","type":"source","version":"1"},{"class":"org.apache.kafka.connect.mirror.MirrorSourceConnector","type":"source","version":"1"}]
----

### Set the Bot Token as secret (optional)
@@ -66,7 +66,7 @@ and set the `plugin.path` property to your choosen location
You'll need to build your connector starting from an archetype:

```
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.kafkaconnector.archetypes -DarchetypeArtifactId=camel-kafka-connector-extensible-archetype -DarchetypeVersion=0.8.0
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.kafkaconnector.archetypes -DarchetypeArtifactId=camel-kafka-connector-extensible-archetype -DarchetypeVersion=0.9.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
@@ -83,31 +83,31 @@ You'll need to build your connector starting from an archetype:
[INFO] Archetype repository not defined. Using the one from [org.apache.camel.kafkaconnector.archetypes:camel-kafka-connector-extensible-archetype:0.4.0] found in catalog remote
Define value for property 'groupId': org.apache.camel.kafkaconnector
Define value for property 'artifactId': slack-extended
Define value for property 'version' 1.0-SNAPSHOT: : 0.8.0
Define value for property 'version' 1.0-SNAPSHOT: : 0.9.0
Define value for property 'package' org.apache.camel.kafkaconnector: :
Define value for property 'camel-kafka-connector-name': camel-slack-kafka-connector
[INFO] Using property: camel-kafka-connector-version = 0.8.0
[INFO] Using property: camel-kafka-connector-version = 0.9.0
Confirm properties configuration:
groupId: org.apache.camel.kafkaconnector
artifactId: slack-extended
version: 0.8.0
version: 0.9.0
package: org.apache.camel.kafkaconnector
camel-kafka-connector-name: camel-slack-kafka-connector
camel-kafka-connector-version: 0.8.0
camel-kafka-connector-version: 0.9.0
Y: : y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: camel-kafka-connector-extensible-archetype:0.8.0
[INFO] Using following parameters for creating project from Archetype: camel-kafka-connector-extensible-archetype:0.9.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.apache.camel.kafkaconnector
[INFO] Parameter: artifactId, Value: slack-extended
[INFO] Parameter: version, Value: 0.8.0
[INFO] Parameter: version, Value: 0.9.0
[INFO] Parameter: package, Value: org.apache.camel.kafkaconnector
[INFO] Parameter: packageInPathFormat, Value: org/apache/camel/kafkaconnector
[INFO] Parameter: package, Value: org.apache.camel.kafkaconnector
[INFO] Parameter: version, Value: 0.8.0
[INFO] Parameter: version, Value: 0.9.0
[INFO] Parameter: groupId, Value: org.apache.camel.kafkaconnector
[INFO] Parameter: camel-kafka-connector-name, Value: camel-slack-kafka-connector
[INFO] Parameter: camel-kafka-connector-version, Value: 0.8.0
[INFO] Parameter: camel-kafka-connector-version, Value: 0.9.0
[INFO] Parameter: artifactId, Value: slack-extended
[INFO] Project created from Archetype in dir: /home/oscerd/playground/slack-extended
[INFO] ------------------------------------------------------------------------
@@ -126,7 +126,7 @@ Now we need to edit the POM
.
.
.
<version>0.8.0</version>
<version>0.9.0</version>
<name>A Camel Kafka Connector extended</name>

<properties>
@@ -151,12 +151,12 @@ Now we need to edit the POM
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-kafka-connector</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-slack-kafka-connector</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>io.apicurio</groupId>
@@ -186,8 +186,8 @@ In this example we'll use `/home/oscerd/connectors/` as plugin.path, but we'll n

```
> cd /home/oscerd/connectors/
> cp /home/workspace/miscellanea/slack-extended/target/slack-extended-0.8.0-package.tar.gz .
> untar.gz slack-extended-0.8.0-package.tar.gz
> cp /home/workspace/miscellanea/slack-extended/target/slack-extended-0.9.0-package.tar.gz .
> untar.gz slack-extended-0.9.0-package.tar.gz
```

Now it's time to setup the connector
@@ -244,14 +244,14 @@ We can also collect some version meta info for the schema

```
curl -X GET http://localhost:8080/api/artifacts/mytopic-value/versions/1/meta
{"version":1,"createdOn":160.8.0208148,"type":"KCONNECT","globalId":1,"state":"ENABLED","id":"mytopic-value"}
{"version":1,"createdOn":160.9.0208148,"type":"KCONNECT","globalId":1,"state":"ENABLED","id":"mytopic-value"}
```

and some meta info too

```
curl -X GET http://localhost:8080/api/artifacts/mytopic-value/meta
{"createdOn":160.8.0208148,"modifiedOn":160.8.0208148,"id":"mytopic-value","version":1,"type":"KCONNECT","globalId":1,"state":"ENABLED"}
{"createdOn":160.9.0208148,"modifiedOn":160.9.0208148,"id":"mytopic-value","version":1,"type":"KCONNECT","globalId":1,"state":"ENABLED"}
```

and finally the schema content
@@ -66,7 +66,7 @@ and set the `plugin.path` property to your choosen location
You'll need to build your connector starting from an archetype:

```
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.kafkaconnector.archetypes -DarchetypeArtifactId=camel-kafka-connector-extensible-archetype -DarchetypeVersion=0.8.0
> mvn archetype:generate -DarchetypeGroupId=org.apache.camel.kafkaconnector.archetypes -DarchetypeArtifactId=camel-kafka-connector-extensible-archetype -DarchetypeVersion=0.9.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
@@ -83,31 +83,31 @@ You'll need to build your connector starting from an archetype:
[INFO] Archetype repository not defined. Using the one from [org.apache.camel.kafkaconnector.archetypes:camel-kafka-connector-extensible-archetype:0.4.0] found in catalog remote
Define value for property 'groupId': org.apache.camel.kafkaconnector
Define value for property 'artifactId': slack-extended
Define value for property 'version' 1.0-SNAPSHOT: : 0.8.0
Define value for property 'version' 1.0-SNAPSHOT: : 0.9.0
Define value for property 'package' org.apache.camel.kafkaconnector: :
Define value for property 'camel-kafka-connector-name': camel-slack-kafka-connector
[INFO] Using property: camel-kafka-connector-version = 0.8.0
[INFO] Using property: camel-kafka-connector-version = 0.9.0
Confirm properties configuration:
groupId: org.apache.camel.kafkaconnector
artifactId: slack-extended
version: 0.8.0
version: 0.9.0
package: org.apache.camel.kafkaconnector
camel-kafka-connector-name: camel-slack-kafka-connector
camel-kafka-connector-version: 0.8.0
camel-kafka-connector-version: 0.9.0
Y: : y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: camel-kafka-connector-extensible-archetype:0.8.0
[INFO] Using following parameters for creating project from Archetype: camel-kafka-connector-extensible-archetype:0.9.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.apache.camel.kafkaconnector
[INFO] Parameter: artifactId, Value: slack-extended
[INFO] Parameter: version, Value: 0.8.0
[INFO] Parameter: version, Value: 0.9.0
[INFO] Parameter: package, Value: org.apache.camel.kafkaconnector
[INFO] Parameter: packageInPathFormat, Value: org/apache/camel/kafkaconnector
[INFO] Parameter: package, Value: org.apache.camel.kafkaconnector
[INFO] Parameter: version, Value: 0.8.0
[INFO] Parameter: version, Value: 0.9.0
[INFO] Parameter: groupId, Value: org.apache.camel.kafkaconnector
[INFO] Parameter: camel-kafka-connector-name, Value: camel-slack-kafka-connector
[INFO] Parameter: camel-kafka-connector-version, Value: 0.8.0
[INFO] Parameter: camel-kafka-connector-version, Value: 0.9.0
[INFO] Parameter: artifactId, Value: slack-extended
[INFO] Project created from Archetype in dir: /home/oscerd/playground/slack-extended
[INFO] ------------------------------------------------------------------------
@@ -126,7 +126,7 @@ Now we need to edit the POM
.
.
.
<version>0.8.0</version>
<version>0.9.0</version>
<name>A Camel Kafka Connector extended</name>

<properties>
@@ -151,12 +151,12 @@ Now we need to edit the POM
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-kafka-connector</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-slack-kafka-connector</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>io.apicurio</groupId>
@@ -184,8 +184,8 @@ In this example we'll use `/home/oscerd/connectors/` as plugin.path, but we'll n

```
> cd /home/oscerd/connectors/
> cp /home/workspace/miscellanea/slack-extended/target/slack-extended-0.8.0-package.tar.gz .
> untar.gz slack-extended-0.8.0-package.tar.gz
> cp /home/workspace/miscellanea/slack-extended/target/slack-extended-0.9.0-package.tar.gz .
> untar.gz slack-extended-0.9.0-package.tar.gz
```

Now it's time to setup the connector
@@ -247,14 +247,14 @@ We can also collect some version meta info for the schema

```
curl -X GET http://localhost:8080/api/artifacts/mytopic-value/versions/1/meta
{"version":1,"createdOn":160.8.0208148,"type":"KCONNECT","globalId":1,"state":"ENABLED","id":"mytopic-value"}
{"version":1,"createdOn":160.9.0208148,"type":"KCONNECT","globalId":1,"state":"ENABLED","id":"mytopic-value"}
```

and some meta info too

```
curl -X GET http://localhost:8080/api/artifacts/mytopic-value/meta
{"createdOn":160.8.0208148,"modifiedOn":160.8.0208148,"id":"mytopic-value","version":1,"type":"KCONNECT","globalId":1,"state":"ENABLED"}
{"createdOn":160.9.0208148,"modifiedOn":160.9.0208148,"id":"mytopic-value","version":1,"type":"KCONNECT","globalId":1,"state":"ENABLED"}
```

and finally the schema content
@@ -43,8 +43,8 @@ In this example we'll use `/home/oscerd/connectors/`

```
> cd /home/oscerd/connectors/
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-slack-kafka-connector/0.8.0/camel-slack-kafka-connector-0.8.0-package.tar.gz
> untar.gz camel-slack-kafka-connector-0.8.0-package.tar.gz
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-slack-kafka-connector/0.9.0/camel-slack-kafka-connector-0.9.0-package.tar.gz
> untar.gz camel-slack-kafka-connector-0.9.0-package.tar.gz
```

Now it's time to setup the connectors
@@ -149,8 +149,8 @@ So we need to do something like this:

```
> cd my-connectors/
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-slack-kafka-connector/0.8.0/camel-slack-kafka-connector-0.8.0-package.tar.gz
> untar.gz camel-slack-kafka-connector-0.8.0-package.tar.gz
> wget https://repo1.maven.org/maven2/org/apache/camel/kafkaconnector/camel-slack-kafka-connector/0.9.0/camel-slack-kafka-connector-0.9.0-package.tar.gz
> untar.gz camel-slack-kafka-connector-0.9.0-package.tar.gz
```

Now we can start the build
@@ -175,7 +175,7 @@ You should see something like this:

[source,json,options="nowrap"]
----
[{"class":"org.apache.camel.kafkaconnector.CamelSinkConnector","type":"sink","version":"0.8.0"},{"class":"org.apache.camel.kafkaconnector.CamelSourceConnector","type":"source","version":"0.8.0"},{"class":"org.apache.camel.kafkaconnector.slack.CamelSlackSinkConnector","type":"sink","version":"0.8.0"},{"class":"org.apache.camel.kafkaconnector.slack.CamelSlackSourceConnector","type":"source","version":"0.8.0"},{"class":"org.apache.kafka.connect.file.FileStreamSinkConnector","type":"sink","version":"2.5.0"},{"class":"org.apache.kafka.connect.file.FileStreamSourceConnector","type":"source","version":"2.5.0"},{"class":"org.apache.kafka.connect.mirror.MirrorCheckpointConnector","type":"source","version":"1"},{"class":"org.apache.kafka.connect.mirror.MirrorHeartbeatConnector","type":"source","version":"1"},{"class":"org.apache.kafka.connect.mirror.MirrorSourceConnector","type":"source","version":"1"}]
[{"class":"org.apache.camel.kafkaconnector.CamelSinkConnector","type":"sink","version":"0.9.0"},{"class":"org.apache.camel.kafkaconnector.CamelSourceConnector","type":"source","version":"0.9.0"},{"class":"org.apache.camel.kafkaconnector.slack.CamelSlackSinkConnector","type":"sink","version":"0.9.0"},{"class":"org.apache.camel.kafkaconnector.slack.CamelSlackSourceConnector","type":"source","version":"0.9.0"},{"class":"org.apache.kafka.connect.file.FileStreamSinkConnector","type":"sink","version":"2.5.0"},{"class":"org.apache.kafka.connect.file.FileStreamSourceConnector","type":"source","version":"2.5.0"},{"class":"org.apache.kafka.connect.mirror.MirrorCheckpointConnector","type":"source","version":"1"},{"class":"org.apache.kafka.connect.mirror.MirrorHeartbeatConnector","type":"source","version":"1"},{"class":"org.apache.kafka.connect.mirror.MirrorSourceConnector","type":"source","version":"1"}]
----

### Set the Bot Token as secret (optional)

0 comments on commit d2293be

Please sign in to comment.