Skip to content

Commit ddb3fcd

Browse files
authored
Release 1.2.0 (#54)
* update library dependencies * update docker images for simple compose-based E2E test and a few small finishing touches for the new release
1 parent bd836a5 commit ddb3fcd

File tree

3 files changed

+26
-25
lines changed

3 files changed

+26
-25
lines changed

pom.xml

+17-18
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>at.grahsl.kafka.connect</groupId>
66
<artifactId>kafka-connect-mongodb</artifactId>
7-
<version>1.2.0-SNAPSHOT</version>
7+
<version>1.2.0</version>
88
<packaging>jar</packaging>
99

1010
<name>kafka-connect-mongodb</name>
@@ -40,28 +40,27 @@
4040
</issueManagement>
4141

4242
<properties>
43-
<kafka.version>1.0.1</kafka.version>
44-
<junit.version>4.12</junit.version>
45-
<mongodb.driver.version>3.6.3</mongodb.driver.version>
43+
<kafka.version>2.0.0</kafka.version>
44+
<mongodb.driver.version>3.8.2</mongodb.driver.version>
4645
<logback.version>1.2.3</logback.version>
47-
<junit.jupiter.version>5.1.0</junit.jupiter.version>
48-
<junit.vintage.version>5.1.0</junit.vintage.version>
49-
<junit.platform.version>1.1.0</junit.platform.version>
50-
<mockito.version>2.9.0</mockito.version>
46+
<junit.jupiter.version>5.3.1</junit.jupiter.version>
47+
<junit.vintage.version>5.3.1</junit.vintage.version>
48+
<junit.platform.version>1.3.1</junit.platform.version>
49+
<mockito.version>2.22.0</mockito.version>
5150
<hamcrest.version>2.0.0.0</hamcrest.version>
52-
<jackson.version>2.9.0</jackson.version>
53-
<jacoco.plugin.version>0.7.9</jacoco.plugin.version>
54-
<codacy.plugin.version>1.0.3</codacy.plugin.version>
55-
<mvn.jar.plugin.version>3.0.2</mvn.jar.plugin.version>
56-
<mvn.compiler.plugin.version>3.6.2</mvn.compiler.plugin.version>
51+
<jackson.version>2.9.7</jackson.version>
52+
<jacoco.plugin.version>0.8.2</jacoco.plugin.version>
53+
<codacy.plugin.version>1.1.0</codacy.plugin.version>
54+
<mvn.jar.plugin.version>3.1.0</mvn.jar.plugin.version>
55+
<mvn.compiler.plugin.version>3.8.0</mvn.compiler.plugin.version>
5756
<mvn.assembly.plugin.version>3.1.0</mvn.assembly.plugin.version>
58-
<mvn.failsafe.plugin.version>2.20.1</mvn.failsafe.plugin.version>
57+
<mvn.failsafe.plugin.version>2.22.0</mvn.failsafe.plugin.version>
5958
<skip.integration.test>false</skip.integration.test>
60-
<testcontainers.version>1.4.3</testcontainers.version>
59+
<testcontainers.version>1.9.1</testcontainers.version>
6160
<avro.version>1.8.2</avro.version>
62-
<confluent.serializer.version>4.0.0</confluent.serializer.version>
63-
<confluent.connect.plugin.version>0.10.0</confluent.connect.plugin.version>
64-
<ok.http.version>3.9.1</ok.http.version>
61+
<confluent.serializer.version>5.0.0</confluent.serializer.version>
62+
<confluent.connect.plugin.version>0.11.1</confluent.connect.plugin.version>
63+
<ok.http.version>3.11.0</ok.http.version>
6564
<yaml.beans.version>1.13</yaml.beans.version>
6665
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6766
</properties>

src/test/java/at/grahsl/kafka/connect/mongodb/end2end/MinimumViableIT.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.junit.runner.Description;
3636
import org.junit.runner.RunWith;
3737
import org.testcontainers.containers.DockerComposeContainer;
38+
import org.testcontainers.containers.wait.strategy.Wait;
3839

3940
import java.io.File;
4041
import java.io.FileReader;
@@ -102,14 +103,15 @@ public class MinimumViableIT {
102103
public static DockerComposeContainer CONTAINER_ENV =
103104
new DockerComposeContainer(new File(DOCKER_COMPOSE_FILE))
104105
.withExposedService(KAFKA_BROKER+DEFAULT_COMPOSE_SERVICE_SUFFIX,KAFKA_BROKER_PORT)
105-
.withExposedService(KAFKA_CONNECT+DEFAULT_COMPOSE_SERVICE_SUFFIX,KAFKA_CONNECT_PORT)
106+
.withExposedService(KAFKA_CONNECT+DEFAULT_COMPOSE_SERVICE_SUFFIX,KAFKA_CONNECT_PORT,
107+
Wait.forListeningPort().withStartupTimeout(Duration.ofSeconds(90)))
106108
.withExposedService(SCHEMA_REGISTRY +DEFAULT_COMPOSE_SERVICE_SUFFIX, SCHEMA_REGISTRY_PORT)
107109
.withExposedService(MONGODB+DEFAULT_COMPOSE_SERVICE_SUFFIX,MONGODB_PORT)
108110
;
109111

110112
@BeforeAll
111113
public static void setup() throws IOException {
112-
CONTAINER_ENV.starting(Description.EMPTY);
114+
CONTAINER_ENV.start();
113115
MONGODB_CLIENT_URI = new MongoClientURI(
114116
"mongodb://"+ MONGODB+":"+MONGODB_PORT+"/kafkaconnect"
115117
);

src/test/resources/docker/compose-env.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
version: '2'
33
services:
44
mongodb:
5-
image: mongo:3.6.0
5+
image: mongo:4.0.2
66
hostname: mongodb
77
ports:
88
- "27017:27017"
99

1010
zookeeper:
11-
image: confluentinc/cp-zookeeper:4.0.0
11+
image: confluentinc/cp-zookeeper:5.0.0
1212
hostname: zookeeper
1313
ports:
1414
- "2181:2181"
@@ -17,7 +17,7 @@ services:
1717
ZOOKEEPER_TICK_TIME: 2000
1818

1919
kafkabroker:
20-
image: confluentinc/cp-kafka:4.0.0
20+
image: confluentinc/cp-kafka:5.0.0
2121
hostname: kafkabroker
2222
depends_on:
2323
- zookeeper
@@ -31,7 +31,7 @@ services:
3131
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
3232

3333
schemaregistry:
34-
image: confluentinc/cp-schema-registry:4.0.0
34+
image: confluentinc/cp-schema-registry:5.0.0
3535
hostname: schemaregistry
3636
depends_on:
3737
- zookeeper
@@ -43,7 +43,7 @@ services:
4343
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
4444

4545
kafkaconnect:
46-
image: confluentinc/cp-kafka-connect:4.0.0
46+
image: confluentinc/cp-kafka-connect:5.0.0
4747
hostname: kafkaconnect
4848
depends_on:
4949
- zookeeper

0 commit comments

Comments
 (0)