-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (42 loc) · 1.06 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
plugins {
// Root Plugins
id("io.bkbn.sourdough.root")
id("com.github.jakemarsden.git-hooks")
id("org.jetbrains.kotlinx.kover")
// Child Plugins
kotlin("jvm") apply false
id("com.google.devtools.ksp") apply false
kotlin("plugin.serialization") apply false
id("io.bkbn.sourdough.library.jvm") apply false
id("io.bkbn.sourdough.application.jvm") apply false
id("com.adarshr.test-logger") apply false
}
gitHooks {
setHooks(
mapOf(
"pre-commit" to "detekt",
"pre-push" to "test"
)
)
}
dependencies {
subprojects.forEach { kover(it) }
}
allprojects {
group = "io.bkbn"
version = run {
val baseVersion =
project.findProperty("project.version") ?: error("project.version needs to be set in gradle.properties")
when ((project.findProperty("release") as? String)?.toBoolean()) {
true -> baseVersion
else -> "$baseVersion-SNAPSHOT"
}
}
plugins.withType(JavaPlugin::class.java) {
configure<JavaPluginExtension> {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
}
}