Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.lujiajing1126:scala-kafka-client:v0.10.2.1'
}
dependencies {
implementation("com.github.lujiajing1126:scala-kafka-client:v0.10.2.1")
}
<dependency>
<groupId>com.github.lujiajing1126</groupId>
<artifactId>scala-kafka-client</artifactId>
<version>v0.10.2.1</version>
</dependency>
libraryDependencies += "com.github.lujiajing1126" % "scala-kafka-client" % "v0.10.2.1"
:dependencies [[com.github.lujiajing1126/scala-kafka-client "v0.10.2.1"]]
This project comprises a few helper modules for operating the Kafka Java Client Driver in a Scala codebase.
<img src="https://raw.githubusercontent.com/wiki/cakesolutions/scala-kafka-client/images/logo.png" align="sck" height="250" width="300">These modules are production ready, actively maintained and are used in a large scale production system.
To resolve any of the modules, add the following resolver to the build.sbt:
resolvers += Resolver.bintrayRepo("cakesolutions", "maven")
A thin Scala wrapper over the official Apache Kafka Java Driver. This module is useful for integrating with Kafka for message consumption/delivery, but provides some helpers for convenient configuration of the driver and usage from Scala. Minimal 3rd party dependencies are added in addition to the Kafka client.
For configuration and usage, see the Wiki: Scala Kafka Client Guide
SBT library dependency:
libraryDependencies += "net.cakesolutions" %% "scala-kafka-client" % "0.10.2.1"
This module provides a configurable asynchronous and non-blocking Kafka Consumer and Producer Actor implementations to support high performance, parallel custom stream processing in an Akka application. These components are specifically intended for use cases where high performance and scalable message processing is required with specific concern for message delivery guarantees and resilience.
For configuration and usage, see the Wiki: Akka Integration
SBT library dependency:
libraryDependencies += "net.cakesolutions" %% "scala-kafka-client-akka" % "0.10.2.1"
The TestKit module provides some tools to support integration testing of client service code that depends on a running Kafka Server. Helps the setup of an in-process Kafka and Zookeeper server.
For usage, see the Wiki: TestKit User Guide
SBT library dependency:
libraryDependencies += "net.cakesolutions" %% "scala-kafka-client-testkit" % "0.10.2.1" % "test"
Starting after version 0.8.0
, the versioning for Scala Kafka client will be tracking Kafka's versioning scheme.
Binary compatibility in the new versioning system works as follows:
0.9.0.0
is compatible with Kafka 0.9 and 0.10.0.0
is compatible with Kafka 0.10.0.9.0.1
is not binary compatible with 0.9.1.0
.0.9.0.0
is compatible with 0.9.0.1
.Both the 0.9.*
and 0.10.*
versions are maintained concurrently.
Here is the full table of binary compatibilities between Scala Kafka client and the Kafka Java driver:
Scala Kafka client | Kafka Java Driver --------------------- | ----------------- 0.10.2.x | 0.10.2.x 0.10.1.x | 0.10.1.x 0.10.0.0 | 0.10.0.x 0.9.0.0 | 0.9.0.x 0.8.0 | 0.10.0.0 0.7.0 | 0.9.0.1
YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.
Copyright 2016, Cake Solutions.
Licensed under the MIT License