Skip to content

Commit 038364b

Browse files
authored
DEVX-1736 Updates Makefile and Docs for 5.5.0 availability (#59)
* DEVX-1736 Updates Makefile and Docs for 5.5.0 availability Also: * explicitly adds required schema registry client library dependency * upgrades avro datagen version to latest * DEVX-1736 Resolves avro dependencies * changes dependnecy to kafka-connect-avro-data instead of converter * removes pom.xml hackery for packaging issues w/ converter usage * removes faulty io.confluent.licenses dependency in codehaus.mojo plugin (changes modeled after other projects using this library)
1 parent 746207d commit 038364b

File tree

3 files changed

+14
-65
lines changed

3 files changed

+14
-65
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SHELL=/bin/bash -o pipefail
88

99
check-dependency = $(if $(shell command -v $(1)),,$(error Make sure $(1) is installed))
1010

11-
CP_VERSION ?= 5.4.1
11+
CP_VERSION ?= 5.5.0
1212
OPERATOR_VERSION ?= 0
1313

1414
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.3.1

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@ A Docker image based on Kafka Connect with the `kafka-connect-datagen` plugin is
6565

6666
If you want to build a local copy of the Docker image with `kafka-connect-datagen`, this project provides a [Dockerfile](Dockerfile-local) that you can reference.
6767

68-
You can create a Docker image packaged with the locally built source by running (for example with the 5.4.1 version of Confluent Platform):
68+
You can create a Docker image packaged with the locally built source by running (for example with the 5.5.0 version of Confluent Platform):
6969
```bash
70-
make build-docker-from-local CP_VERSION=5.4.1
70+
make build-docker-from-local CP_VERSION=5.5.0
7171
```
7272

73-
This will build the connector from source and create a local image with an aggregate version number. The aggregate version number is the kafka-connect-datagen connector version number and the Confluent Platform version number separated with a `-`. The local kafka-connect-datagen version number is defined in the `pom.xml` file, and the Confluent Platform version defined in the [Makefile](Makfile). An example of the aggregate version number might be: `0.3.1-5.4.1`.
73+
This will build the connector from source and create a local image with an aggregate version number. The aggregate version number is the kafka-connect-datagen connector version number and the Confluent Platform version number separated with a `-`. The local kafka-connect-datagen version number is defined in the `pom.xml` file, and the Confluent Platform version defined in the [Makefile](Makfile). An example of the aggregate version number might be: `0.3.1-5.5.0`.
7474

7575
Alternatively, you can install the `kafka-connect-datagen` connector from [Confluent Hub](https://www.confluent.io/connector/kafka-connect-datagen/) into a Docker image by running:
7676
```bash
77-
make build-docker-from-released CP_VERSION=5.4.1
77+
make build-docker-from-released CP_VERSION=5.5.0
7878
```
7979

8080
The [Makefile](Makefile) contains some default variables that affect the version numbers of both the installed `kafka-connect-datagen` as well as the base Confluent Platform version. The variables are located near the top of the [Makefile](Makefile) with the following names and current default values:
8181

8282
```bash
83-
CP_VERSION ?= 5.4.1
83+
CP_VERSION ?= 5.5.0
8484

8585
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.3.1
8686
```
@@ -234,9 +234,9 @@ To release new versions of the Docker images to Dockerhub (https://hub.docker.co
234234
The [Makefile](Makefile) contains some default variables that affect the version numbers of both the installed `kafka-connect-datagen` as well as the base Confluent Platform version. The variables are located near the top of the [Makefile](Makefile) with the following names and current default values:
235235

236236
```bash
237-
CP_VERSION ?= 5.4.1
237+
CP_VERSION ?= 5.5.0
238238
KAFKA_CONNECT_DATAGEN_VERSION ?= 0.3.1
239-
OPERATOR_VERSION ?= 0 # Operator is a 'rev' version appended at the end of the CP version, like so: 5.4.1.0
239+
OPERATOR_VERSION ?= 0 # Operator is a 'rev' version appended at the end of the CP version, like so: 5.5.0.0
240240
```
241241

242242
To publish the https://hub.docker.com/r/cnfldemos/kafka-connect-datagen/ image:
@@ -246,12 +246,12 @@ make push-from-released
246246

247247
and to override the CP Version of the `kafka-connect-datagen` version you can run something similar to:
248248
```bash
249-
CP_VERSION=5.4.1 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make publish-cp-kafka-connect-confluenthub
249+
CP_VERSION=5.5.0 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make publish-cp-kafka-connect-confluenthub
250250
```
251251

252252
to override the CP Version and the Operator version, which may happen if Operator releases a patch version, you could run something similar to:
253253
```bash
254-
CP_VERSION=5.4.1 OPERATOR_VERSION=1 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make push-cp-server-connect-operator-from-released
254+
CP_VERSION=5.5.0 OPERATOR_VERSION=1 KAFKA_CONNECT_DATAGEN_VERSION=0.1.4 make push-cp-server-connect-operator-from-released
255255
```
256-
which would result in a docker image tagged as: `cp-server-connect-operator-datagen:0.1.4-5.4.1.1` and pushed to DockerHub
256+
which would result in a docker image tagged as: `cp-server-connect-operator-datagen:0.1.4-5.5.0.1` and pushed to DockerHub
257257

pom.xml

Lines changed: 3 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>io.confluent</groupId>
2222
<artifactId>common-parent</artifactId>
23-
<version>5.4.1</version>
23+
<version>5.5.0</version>
2424
</parent>
2525

2626
<groupId>io.confluent.kafka.connect</groupId>
@@ -31,7 +31,7 @@
3131

3232
<properties>
3333
<connect-runtime-version>2.0.0</connect-runtime-version>
34-
<confluent.avro.generator.version>0.3.0</confluent.avro.generator.version>
34+
<confluent.avro.generator.version>0.3.1</confluent.avro.generator.version>
3535
<junit.version>4.12</junit.version>
3636
<avro.version>1.8.1</avro.version>
3737
<maven.release.plugin.version>2.5.3</maven.release.plugin.version>
@@ -93,14 +93,9 @@
9393
</dependency>
9494
<dependency>
9595
<groupId>io.confluent</groupId>
96-
<artifactId>kafka-connect-avro-converter</artifactId>
96+
<artifactId>kafka-connect-avro-data</artifactId>
9797
<version>${confluent.version}</version>
9898
<exclusions>
99-
<!-- We're only using AvroData, which doesn't use Schema Registry -->
100-
<exclusion>
101-
<groupId>io.confluent</groupId>
102-
<artifactId>kafka-schema-registry-client</artifactId>
103-
</exclusion>
10499
<exclusion>
105100
<groupId>org.apache.zookeeper</groupId>
106101
<artifactId>zookeeper</artifactId>
@@ -205,45 +200,6 @@
205200
</execution>
206201
</executions>
207202
</plugin>
208-
<plugin>
209-
<groupId>org.codehaus.mojo</groupId>
210-
<artifactId>truezip-maven-plugin</artifactId>
211-
<version>1.2</version>
212-
<executions>
213-
<execution>
214-
<id>remove-avro-converter-plugin</id>
215-
<goals>
216-
<goal>remove</goal>
217-
</goals>
218-
<phase>package</phase>
219-
<configuration>
220-
<fileset>
221-
<directory>${project.basedir}/target/components/packages/confluentinc-kafka-connect-datagen-${project.version}/confluentinc-kafka-connect-datagen-${project.version}/lib/kafka-connect-avro-converter-${confluent.version}.jar</directory>
222-
<includes>
223-
<include>io/confluent/connect/avro/AvroConverter.class</include>
224-
<include>io/confluent/connect/avro/AvroConverter$*.class</include>
225-
</includes>
226-
</fileset>
227-
</configuration>
228-
</execution>
229-
<execution>
230-
<id>repackage-avro-converter-dependency</id>
231-
<goals>
232-
<goal>copy</goal>
233-
</goals>
234-
<phase>package</phase>
235-
<configuration>
236-
<fileset>
237-
<directory>${project.basedir}/target/components/packages/confluentinc-kafka-connect-datagen-${project.version}</directory>
238-
<includes>
239-
<include>confluentinc-kafka-connect-datagen-${project.version}/lib/kafka-connect-avro-converter-${confluent.version}.jar</include>
240-
</includes>
241-
<outputDirectory>${project.basedir}/target/components/packages/confluentinc-kafka-connect-datagen-${project.version}.zip</outputDirectory>
242-
</fileset>
243-
</configuration>
244-
</execution>
245-
</executions>
246-
</plugin>
247203
</plugins>
248204
</build>
249205

@@ -289,13 +245,6 @@
289245
<artifactId>licenses</artifactId>
290246
</executableDependency>
291247
</configuration>
292-
<dependencies>
293-
<dependency>
294-
<groupId>io.confluent</groupId>
295-
<artifactId>licenses</artifactId>
296-
<version>${licenses.version}</version>
297-
</dependency>
298-
</dependencies>
299248
</plugin>
300249
<plugin>
301250
<artifactId>maven-clean-plugin</artifactId>

0 commit comments

Comments
 (0)