Skip to content

Commit 1a56ac0

Browse files
Building 2 versions of the connector for different CP versions. Resolves #4
1 parent fe09bf5 commit 1a56ac0

File tree

4 files changed

+55
-8
lines changed

4 files changed

+55
-8
lines changed

docker/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ echo "Building the Redis Enterprise Kafka Connector"
1212
(
1313
cd ..
1414
./mvnw clean package
15-
find ./target/components/packages -type d -mindepth 2 -maxdepth 2 -exec mv {} ./target/components/packages/redis-enterprise-kafka \;
15+
find ./target/components/packages -type d -name "redislabs-cp5-*" -mindepth 2 -maxdepth 2 -exec mv {} ./target/components/packages/redis-enterprise-kafka \;
1616
)
1717

1818
echo "Starting docker ."

jreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ distributions:
6161
kafka-connect-archive:
6262
type: binary
6363
artifacts:
64-
- path: target/components/packages/redislabs-{{projectName}}-{{projectVersion}}.zip
64+
- path: target/components/packages/redislabs-cp5-{{projectName}}-{{projectVersion}}.zip
65+
- path: target/components/packages/redislabs-cp6-{{projectName}}-{{projectVersion}}.zip

pom.xml

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,17 @@
277277
<version>0.12.0</version>
278278
<executions>
279279
<execution>
280+
<id>cp5</id>
280281
<phase>package</phase>
281282
<goals>
282283
<goal>kafka-connect</goal>
283284
</goals>
284285
<configuration>
285-
<title>Redis Enterprise Kafka</title>
286+
<title>Redis Enterprise Kafka for Confluent Platform 5.x</title>
286287
<documentationUrl>https://redislabs-field-engineering.github.io/redis-enterprise-kafka/
287288
</documentationUrl>
288289
<ownerLogo>src/docs/asciidoc/images/redislabs.svg</ownerLogo>
289-
<ownerUsername>redislabs</ownerUsername>
290+
<ownerUsername>redislabs-cp5</ownerUsername>
290291
<ownerName>Redis Labs</ownerName>
291292
<ownerUrl>https://redislabs.com</ownerUrl>
292293
<sourceUrl>${project.scm.url}</sourceUrl>
@@ -302,16 +303,52 @@
302303
<componentType>source</componentType>
303304
</componentTypes>
304305
<requirements>
306+
<requirement>Confluent Platform 5.0+</requirement>
305307
<requirement>Redis Enterprise 6.0+</requirement>
306308
</requirements>
307309
<tags>
308310
<tag>redis</tag>
309311
<tag>enterprise</tag>
310312
</tags>
311-
<!-- Uncomment to build the connector for Confluent 6.x. Known issue: https://github.com/jcustenborder/kafka-connect-redis/issues/31 -->
312-
<!-- <excludes>-->
313-
<!-- <exclude>io.netty:*</exclude>-->
314-
<!-- </excludes>-->
313+
</configuration>
314+
</execution>
315+
<execution>
316+
<id>cp6</id>
317+
<phase>package</phase>
318+
<goals>
319+
<goal>kafka-connect</goal>
320+
</goals>
321+
<configuration>
322+
<title>Redis Enterprise Kafka for Confluent Platform 6.x</title>
323+
<documentationUrl>https://redislabs-field-engineering.github.io/redis-enterprise-kafka/
324+
</documentationUrl>
325+
<ownerLogo>src/docs/asciidoc/images/redislabs.svg</ownerLogo>
326+
<ownerUsername>redislabs-cp6</ownerUsername>
327+
<ownerName>Redis Labs</ownerName>
328+
<ownerUrl>https://redislabs.com</ownerUrl>
329+
<sourceUrl>${project.scm.url}</sourceUrl>
330+
<supportProviderName>Redis Labs</supportProviderName>
331+
<supportSummary>
332+
<![CDATA[This connector is <a href="https://redislabs.com/company/support/">supported by Redis Labs</a> as part of a
333+
<a href="https://redislabs.com/redis-enterprise">Redis Enterprise</a> license.]]>
334+
</supportSummary>
335+
<supportUrl>${project.issueManagement.url}</supportUrl>
336+
<confluentControlCenterIntegration>true</confluentControlCenterIntegration>
337+
<componentTypes>
338+
<componentType>sink</componentType>
339+
<componentType>source</componentType>
340+
</componentTypes>
341+
<requirements>
342+
<requirement>Confluent Platform 6.0+</requirement>
343+
<requirement>Redis Enterprise 6.0+</requirement>
344+
</requirements>
345+
<tags>
346+
<tag>redis</tag>
347+
<tag>enterprise</tag>
348+
</tags>
349+
<excludes>
350+
<exclude>io.netty:*</exclude>
351+
</excludes>
315352
</configuration>
316353
</execution>
317354
</executions>

src/docs/asciidoc/install.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
Download the latest release archive from https://github.com/RedisLabs-Field-Engineering/redis-enterprise-kafka/releases[here].
66

7+
[IMPORTANT]
8+
.Confluent Platform Version
9+
====
10+
Download the connector archive that matches your version of Confluent Platform:
11+
12+
* Confluent Platform 5.0+: `redislabs-*cp5*-redis-enterprise-kafka-X.Y.Z`
13+
* Confluent Platform 6.0+: `redislabs-*cp6*-redis-enterprise-kafka-X.Y.Z`
14+
====
15+
716
== Install using Confluent Hub
817

918
1. Install the https://docs.confluent.io/current/connect/managing/confluent-hub/client.html[Confluent Hub Client]

0 commit comments

Comments
 (0)