-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
49 lines (41 loc) · 1.52 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java-library'
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
// Add Confluent maven repo for Confluent dependencies
maven {
url 'http://packages.confluent.io/maven/'
}
// Required for com.github.everit-org.json-schema:org.everit.json.schema:
maven {
url "https://jitpack.io"
}
// Add local repo this way example can be tested on every build
mavenLocal()
}
ext {
// Run ./gradlew setDependenciesForExample to set this properties
assertjVersion = 'PLACEHOLDER'
confluentVersion = 'PLACEHOLDER'
kafkaJunitVersion = 'PLACEHOLDER'
junitJupiterVersion = 'PLACEHOLDER'
}
dependencies {
implementation "io.confluent:kafka-avro-serializer:$confluentVersion"
implementation "io.confluent:kafka-schema-registry-client:$confluentVersion"
testImplementation "com.salesforce.kafka.test:kafka-junit5:$kafkaJunitVersion"
// schema-registry junit
testImplementation 'io.github.data-rocks-team:schemaregistry-junit5:local'
testImplementation "io.confluent:kafka-schema-registry:$confluentVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
testImplementation "org.assertj:assertj-core:$assertjVersion"
}
test {
// Use junit platform for unit tests
useJUnitPlatform()
}