Skip to content

Commit

Permalink
Release 1.3.0 (#75)
Browse files Browse the repository at this point in the history
* update pom dependencies

* update gradle dependencies

* minor updates e2e test and raise docker compose image tags

* include several build plugins to release to maven central see #74

update confluent serializers dependency

* modify travis.yml to skip pgp signing

* version bumping for 1.3.0 release

* add maven badge to readme
  • Loading branch information
hpgrahsl authored Apr 4, 2019
1 parent 26686e4 commit 2313b14
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ before_install:
- sudo mv docker-compose /usr/local/bin

script:
- mvn install -Dmaven.javadoc.skip=true -B -V
- mvn install -Dmaven.javadoc.skip=true -Dgpg.skip -B -V

after_success:
- mvn jacoco:prepare-agent test jacoco:report
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Kafka Connect MongoDB

[![Build Status](https://travis-ci.org/hpgrahsl/kafka-connect-mongodb.svg?branch=master)](https://travis-ci.org/hpgrahsl/kafka-connect-mongodb) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/9ce80f1868154f02ad839eb76521d582)](https://www.codacy.com/app/hpgrahsl/kafka-connect-mongodb?utm_source=github.com&utm_medium=referral&utm_content=hpgrahsl/kafka-connect-mongodb&utm_campaign=Badge_Grade) [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/9ce80f1868154f02ad839eb76521d582)](https://www.codacy.com/app/hpgrahsl/kafka-connect-mongodb?utm_source=github.com&utm_medium=referral&utm_content=hpgrahsl/kafka-connect-mongodb&utm_campaign=Badge_Coverage)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/at.grahsl.kafka.connect/kafka-connect-mongodb/badge.svg)](https://maven-badges.herokuapp.com/maven-central/at.grahsl.kafka.connect/kafka-connect-mongodb)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E3P9D3REZXTJS)

It's a basic [Apache Kafka](https://kafka.apache.org/) [Connect SinkConnector](https://kafka.apache.org/documentation/#connect) for [MongoDB](https://www.mongodb.com/).
Expand Down
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ repositories {
}

ext {
kafkaVersion='2.0.0'
mongodbDriverVersion='3.8.2'
kafkaVersion='2.2.0'
mongodbDriverVersion='3.10.1'
logbackVersion='1.2.3'
jacksonVersion='2.9.7'
confluentSerializerVersion='5.0.0'
jacksonVersion='2.9.8'
confluentSerializerVersion='5.2.0'
confluentConnectPluginVersion='0.11.1'
junitJupiterVersion='5.3.1'
junitPlatformVersion='1.3.1'
junitJupiterVersion='5.4.1'
junitPlatformVersion='1.4.1'
hamcrestVersion='2.0.0.0'
mockitoVersion='2.22.0'
testcontainersVersion='1.9.1'
mockitoVersion='2.25.1'
testcontainersVersion='1.11.1'
avroVersion='1.8.2'
okHttpVersion='3.11.0'
okHttpVersion='3.14.0'
yamlBeansVersion='1.13'
}

Expand Down
99 changes: 84 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>at.grahsl.kafka.connect</groupId>
<artifactId>kafka-connect-mongodb</artifactId>
<version>1.3.0-SNAPSHOT</version>
<version>1.3.0</version>
<packaging>jar</packaging>

<name>kafka-connect-mongodb</name>
Expand All @@ -30,38 +30,42 @@
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/hpgrahsl/kafka-connect-mongodb.git</connection>
<developerConnection>scm:git:git@github.com:hpgrahsl/kafka-connect-mongodb.git</developerConnection>
<url>https://github.com/hpgrahsl/kafka-connect-mongodb</url>
<connection>scm:git:git://github.com/hpgrahsl/kafka-connect-mongodb.git</connection>
<developerConnection>scm:git:ssh://github.com:hpgrahsl/kafka-connect-mongodb.git</developerConnection>
<url>https://github.com/hpgrahsl/kafka-connect-mongodb/tree/master</url>
</scm>
<issueManagement>
<system>github</system>
<url>https://github.com/hpgrahsl/kafka-connect-mongodb/issues</url>
</issueManagement>

<properties>
<kafka.version>2.1.0</kafka.version>
<kafka.version>2.2.0</kafka.version>
<mongodb.driver.version>3.10.1</mongodb.driver.version>
<logback.version>1.2.3</logback.version>
<junit.jupiter.version>5.4.0</junit.jupiter.version>
<junit.vintage.version>5.4.0</junit.vintage.version>
<junit.platform.version>1.4.0</junit.platform.version>
<mockito.version>2.24.0</mockito.version>
<junit.jupiter.version>5.4.1</junit.jupiter.version>
<junit.vintage.version>5.4.1</junit.vintage.version>
<junit.platform.version>1.4.1</junit.platform.version>
<mockito.version>2.25.1</mockito.version>
<hamcrest.version>2.0.0.0</hamcrest.version>
<jackson.version>2.9.8</jackson.version>
<jacoco.plugin.version>0.8.3</jacoco.plugin.version>
<codacy.plugin.version>1.1.0</codacy.plugin.version>
<mvn.jar.plugin.version>3.1.0</mvn.jar.plugin.version>
<mvn.jar.plugin.version>3.1.1</mvn.jar.plugin.version>
<mvn.compiler.plugin.version>3.8.0</mvn.compiler.plugin.version>
<mvn.assembly.plugin.version>3.1.0</mvn.assembly.plugin.version>
<mvn.failsafe.plugin.version>2.22.0</mvn.failsafe.plugin.version>
<mvn.assembly.plugin.version>3.1.1</mvn.assembly.plugin.version>
<mvn.failsafe.plugin.version>2.22.1</mvn.failsafe.plugin.version>
<skip.integration.test>false</skip.integration.test>
<testcontainers.version>1.10.6</testcontainers.version>
<testcontainers.version>1.11.1</testcontainers.version>
<avro.version>1.8.2</avro.version>
<confluent.serializer.version>5.1.1</confluent.serializer.version>
<confluent.serializer.version>5.2.0</confluent.serializer.version>
<confluent.connect.plugin.version>0.11.1</confluent.connect.plugin.version>
<ok.http.version>3.13.1</ok.http.version>
<ok.http.version>3.14.0</ok.http.version>
<yaml.beans.version>1.13</yaml.beans.version>
<nexus.staging.maven.plugin.version>1.6.8</nexus.staging.maven.plugin.version>
<maven.source.plugin.version>3.0.1</maven.source.plugin.version>
<maven.javadoc.plugin.version>3.1.0</maven.javadoc.plugin.version>
<maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand Down Expand Up @@ -188,6 +192,17 @@
</dependency>
</dependencies>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -326,6 +341,60 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus.staging.maven.plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven.source.plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<sourcepath>${basedir}/src/main/java/</sourcepath>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven.gpg.plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.model.BulkWriteOptions;
import com.mongodb.client.model.WriteModel;

import org.apache.commons.lang.StringUtils;
import org.apache.kafka.clients.consumer.OffsetAndMetadata;
import org.apache.kafka.common.TopicPartition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.Description;
import org.junit.runner.RunWith;
import org.testcontainers.containers.DockerComposeContainer;
import org.testcontainers.containers.wait.strategy.Wait;
Expand Down Expand Up @@ -127,7 +126,7 @@ public static void setup() throws IOException {

String config = new String(Files.readAllBytes(Paths.get(SINK_CONNECTOR_CONFIG)));

deferExecutionToWaitForDataPropagation(Duration.ofMinutes(2),
deferExecutionToWaitForDataPropagation(Duration.ofSeconds(30),
"wait some time so that all container processes become available");

registerMongoDBSinkConnector(config);
Expand Down
10 changes: 5 additions & 5 deletions src/test/resources/docker/compose-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
version: '2'
services:
mongodb:
image: mongo:4.1.8
image: mongo:4.0.8
hostname: mongodb
ports:
- "27017:27017"

zookeeper:
image: confluentinc/cp-zookeeper:5.1.1
image: confluentinc/cp-zookeeper:5.2.0
hostname: zookeeper
ports:
- "2181:2181"
Expand All @@ -17,7 +17,7 @@ services:
ZOOKEEPER_TICK_TIME: 2000

kafkabroker:
image: confluentinc/cp-kafka:5.1.1
image: confluentinc/cp-kafka:5.2.0
hostname: kafkabroker
depends_on:
- zookeeper
Expand All @@ -31,7 +31,7 @@ services:
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0

schemaregistry:
image: confluentinc/cp-schema-registry:5.1.1
image: confluentinc/cp-schema-registry:5.2.0
hostname: schemaregistry
depends_on:
- zookeeper
Expand All @@ -43,7 +43,7 @@ services:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'

kafkaconnect:
image: confluentinc/cp-kafka-connect:5.1.1
image: confluentinc/cp-kafka-connect:5.2.0
hostname: kafkaconnect
depends_on:
- zookeeper
Expand Down

0 comments on commit 2313b14

Please sign in to comment.