This repository was archived by the owner on Feb 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
51 lines (45 loc) · 1.38 KB
/
settings.gradle.kts
File metadata and controls
51 lines (45 loc) · 1.38 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
49
50
51
rootProject.name = "event-stream"
pluginManagement {
repositories {
gradlePluginPortal()
}
}
// 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.eventstream"
version = libraryVersion
description =
"A library for receiving real-time and historical block, block event, and transaction event data from the Provenance block chain."
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
// See to get around the restriction of not allowing variables in the plugin section of build.gradle.kts
// https://github.com/gradle/gradle/issues/1697#issuecomment-810913564
include("es-api")
include("es-api-model")
include("es-cli")
include("es-common")
include("es-core")
include("es-grpc")
include("es-kafka")
plugins {
id("org.danilopianini.gradle-pre-commit-git-hooks") version "1.1.16"
}
gitHooks {
preCommit {
from {
"""
echo "Running pre-commit ktlint check"
./gradlew ktlintCheck
""".trimIndent()
}
}
createHooks()
}