-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
89 lines (77 loc) · 3.07 KB
/
build.gradle.kts
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
description = "A Kafka Connect SMT for removing nested fields in keys and values."
plugins {
`java-library`
id("net.researchgate.release") version "3.0.2"
id("com.bakdata.sonar") version "1.1.16"
id("com.bakdata.sonatype") version "1.1.14"
id("org.hildan.github.changelog") version "2.2.0"
id("com.github.davidmc24.gradle.plugin.avro") version "1.9.1"
id("io.freefair.lombok") version "8.4"
}
group = "com.bakdata.kafka"
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
maven(url = "https://packages.confluent.io/maven/")
}
dependencies {
val kafkaVersion: String by project
compileOnly(group = "org.apache.kafka", name = "connect-transforms", version = kafkaVersion)
compileOnly(group = "org.apache.kafka", name = "connect-runtime", version = kafkaVersion) {
exclude(group = "org.slf4j", module = "slf4j-log4j12")
}
val log4jVersion: String by project
testImplementation(group = "org.apache.logging.log4j", name = "log4j-slf4j-impl", version = log4jVersion)
testImplementation(group = "org.apache.kafka", name = "connect-api", version = kafkaVersion)
testImplementation(group = "net.mguenther.kafka", name = "kafka-junit", version = "3.3.0") {
exclude(group = "org.slf4j", module = "slf4j-log4j12")
}
testImplementation(group = "org.apache.kafka", name = "connect-file", version = kafkaVersion)
val confluentVersion: String by project
testImplementation(group = "io.confluent", name = "kafka-connect-avro-converter", version = confluentVersion) {
exclude(group = "org.slf4j", module = "slf4j-log4j12")
}
testImplementation(group = "io.confluent", name = "kafka-streams-avro-serde", version = confluentVersion) {
exclude(group = "org.slf4j", module = "slf4j-log4j12")
}
val avroVersion: String by project
testImplementation(group = "org.apache.avro", name = "avro", version = avroVersion)
val junitVersion: String by project
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-api", version = junitVersion)
testRuntimeOnly(group = "org.junit.jupiter", name = "junit-jupiter-engine", version = junitVersion)
testImplementation(group = "org.assertj", name = "assertj-core", version = "3.24.2")
testImplementation(
group = "com.bakdata.fluent-kafka-streams-tests",
name = "schema-registry-mock-junit5",
version = "2.8.1"
)
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
configure<com.bakdata.gradle.SonatypeSettings> {
developers {
developer {
name.set("Ramin Gharib")
id.set("raminqaf")
}
}
}
configure<org.hildan.github.changelog.plugin.GitHubChangelogExtension> {
githubUser = "bakdata"
futureVersionTag = findProperty("changelog.releaseVersion")?.toString()
sinceTag = findProperty("changelog.sinceTag")?.toString()
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
}
}