-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (44 loc) · 1.3 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
import buildsrc.ext.excludeGeneratedGradleDsl
import buildsrc.ext.initIdeProjectLogo
plugins {
buildsrc.convention.`kotlin-jvm`
buildsrc.convention.`maven-publish`
`project-report`
// `build-dashboard` // incompatible with Gradle CC
idea
}
group = "dev.adamko.kotka"
version = object {
private val gitVersion = project.gitVersion
override fun toString(): String = gitVersion.get()
}
dependencies {
implementation(platform(projects.modules.versionsPlatform))
api(projects.modules.kotkaStreamsExtensions)
api(projects.modules.kotkaStreamsFramework)
api(projects.modules.kotkaStreamsKotlinxSerialization)
}
kotkaPublishing {
mavenPomSubprojectName.set("Kotlin for Kafka Streams")
mavenPomDescription.set("Using Kotka means a more pleasant experience while using Kafka Streams")
}
idea {
module {
excludeGeneratedGradleDsl(layout)
excludeDirs = excludeDirs + layout.files(
".idea",
"gradle/wrapper",
)
}
}
initIdeProjectLogo("docs/images/logo-icon.svg")
val projectVersion by tasks.registering {
description = "prints the project version"
group = "help"
val version = providers.provider { project.version }
inputs.property("version", version)
outputs.cacheIf("logging task, it should always run") { false }
doLast {
logger.quiet("${version.orNull}")
}
}