Skip to content

Commit 0e73183

Browse files
committed
chore(docs): put kafka version in gradle.props
1 parent 4c0afd1 commit 0e73183

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ subprojects {
6464
}
6565
}
6666

67+
val kafkaVersion: String by project
6768
tasks.withType<DokkaTaskPartial>().configureEach {
6869
if (project.name != "docs") dokkaSourceSets {
6970
named("main") {
@@ -76,7 +77,7 @@ subprojects {
7677
))
7778
}
7879
externalDocumentationLink(
79-
url = URL("https://javadoc.io/doc/org.apache.kafka/kafka-clients/2.8.0/")
80+
url = URL("https://javadoc.io/doc/org.apache.kafka/kafka-clients/$kafkaVersion/")
8081
)
8182
externalDocumentationLink(
8283
url = URL("https://kotlin.github.io/kotlinx.coroutines/")

core/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
}
66

77
dependencies {
8-
api("org.apache.kafka:kafka_2.12:2.8.0")
8+
val kafkaVersion: String by project
9+
api("org.apache.kafka:kafka_2.12:$kafkaVersion")
910
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
1011
}

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ version=0.0.1
66

77
serializationLibVersion=1.2.1
88
jacocoVersion=0.8.7
9+
kafkaVersion=2.8.0

0 commit comments

Comments
 (0)