-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
48 lines (42 loc) · 1.17 KB
/
settings.gradle.kts
File metadata and controls
48 lines (42 loc) · 1.17 KB
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
rootProject.name = "ft-coroutines"
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
}
// Adapted from https://stackoverflow.com/a/60456440
gradle.rootProject {
/**
* This library and all subprojects are set to the same shared version.
* This is the only place the version should be updated:
*/
val libraryVersion =
rootProject.property("libraryVersion") ?: error("Missing libraryVersion - check gradle.properties")
allprojects {
group = "tech.figure.coroutines"
version = libraryVersion
description =
"Library for reading from and writing to Kafka from Kotlin coroutines"
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include("cli")
include("ft-coroutines-core")
include("ft-coroutines-retry")
include("ft-coroutines-kafka")
include("ft-coroutines-kafka-retry")
plugins {
id("org.danilopianini.gradle-pre-commit-git-hooks") version "2.0.7"
}
gitHooks {
preCommit {
from {
"""
echo "Running pre-commit ktlint check"
./gradlew ktlintCheck
""".trimIndent()
}
}
createHooks()
}