Skip to content

Commit

Permalink
Added generation of archive for confluent (#66)
Browse files Browse the repository at this point in the history
Co-authored-by: Adalbert Makarovych <[email protected]>
  • Loading branch information
AdalbertMemSQL and Adalbert Makarovych authored Jan 9, 2025
1 parent f1e3da7 commit c520faf
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ jobs:
run: mvn -B clean deploy --file pom.xml -DskipTests -Dsonatype.username=${{ secrets.SONATYPE_USERNAME }} -Dsonatype.password=${{ secrets.SONATYPE_PASSWORD }}
- name: Build archive
run: mvn -B package --file pom.xml -P assembly
- name: Release Plugin Archive
- name: Release Plugin tar.gz Archive
uses: softprops/action-gh-release@v1
with:
files: target/singlestore-debezium-connector-*-plugin.tar.gz
- name: Release Plugin zip Archive
uses: softprops/action-gh-release@v1
with:
files: target/components/packages/singlestore-singlestore-debezium-connector-*.zip
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ in specific columns.
### Installation
* Download
the [SingleStore connector for Debezium plugin archive](https://github.com/singlestore-labs/singlestore-debezium-connector/releases/download/v0.1.8/singlestore-debezium-connector-0.1.8-plugin.tar.gz).
the [SingleStore connector for Debezium plugin archive](https://github.com/singlestore-labs/singlestore-debezium-connector/releases/download/v0.1.9/singlestore-debezium-connector-0.1.9-plugin.tar.gz).
* Extract the archive to a directory.
* Add the directory from the previous step to Kafka Connect’s plugin path.
Set the `plugin.path` property in the `connect-distributed.properties` file.
Expand Down Expand Up @@ -232,7 +232,7 @@ operation that inserts data in the `t` table:
"a":33
},
"source":{
"version":"0.1.8",
"version":"0.1.9",
"connector":"singlestore",
"name":"singlestore",
"ts_ms":1706197043473,
Expand Down Expand Up @@ -267,7 +267,7 @@ as the preceding create event.
"a":22
},
"source":{
"version":"0.1.8",
"version":"0.1.9",
"connector":"singlestore",
"name":"singlestore",
"ts_ms":1706197446500,
Expand Down Expand Up @@ -309,7 +309,7 @@ update event examples.
"before":null,
"after":null,
"source":{
"version":"0.1.8",
"version":"0.1.9",
"connector":"singlestore",
"name":"singlestore",
"ts_ms":1706197665407,
Expand Down
Binary file added logos/singlestore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 53 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,57 @@
<groupId>org.apache.maven.plugins</groupId>
<version>3.2.1</version>
</plugin>
<plugin>
<artifactId>kafka-connect-maven-plugin</artifactId>
<executions>
<execution>
<configuration>
<componentTypes>
<componentType>source</componentType>
</componentTypes>
<description>
SingleStore connector for Debezium captures and records row-level changes that occur
in the database. You can configure the connector to read from a single table and to
ignore, mask, or truncate values in specific columns.
</description>

<!--
TODO: add link to the documentation
<documentationUrl>
https://docs.confluent.io/current/connect/connect-elasticsearch/docs/elasticsearch_connector.html
</documentationUrl>
-->

<logo>logos/singlestore.png</logo>

<ownerLogo>logos/confluent.png</ownerLogo>
<ownerName>SingleStore, Inc.</ownerName>
<ownerType>organization</ownerType>
<ownerUrl>https://www.singlestore.com/</ownerUrl>

<ownerUsername>singlestore</ownerUsername>

<requirements>
<requirement>SingleStore 8.7.16+</requirement>
</requirements>

<tags>
<tag>SingleStore</tag>
<tag>memsql</tag>
<tag>debezium</tag>
<tag>CDC</tag>
</tags>

<title>Debezium SingleStore CDC Source Connector</title>
</configuration>
<goals>
<goal>kafka-connect</goal>
</goals>
</execution>
</executions>
<groupId>io.confluent</groupId>
<version>0.10.0</version>
</plugin>
</plugins>
<resources>
<!-- Apply the properties set in the POM to the resource files -->
Expand Down Expand Up @@ -407,11 +458,11 @@
<developerConnection>
scm:git:[email protected]:singlestore-labs/singlestore-debezium-connector.git
</developerConnection>
<tag>singlestore-debezium-connector-0.1.8</tag>
<tag>singlestore-debezium-connector-0.1.9</tag>
<url>git://[email protected]:singlestore-labs/singlestore-debezium-connector.git</url>
</scm>

<url>https://github.com/singlestore-labs/singlestore-debezium-connector</url>

<version>0.1.8</version>
<version>0.1.9</version>
</project>
2 changes: 1 addition & 1 deletion src/test/java/com/singlestore/debezium/StreamingIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void populatesSourceInfo() throws SQLException, InterruptedException {
SourceRecord record = records.get(0);

Struct source = (Struct) ((Struct) record.value()).get("source");
assertEquals(source.get("version"), "0.1.8");
assertEquals(source.get("version"), "0.1.9");
assertEquals(source.get("connector"), "singlestore");
assertEquals(source.get("name"), "singlestore_topic");
assertNotNull(source.get("ts_ms"));
Expand Down

0 comments on commit c520faf

Please sign in to comment.