-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
settings.gradle.kts
104 lines (82 loc) · 2.63 KB
/
settings.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
rootProject.name = "hexagon"
include(
"core",
"handlers",
"site",
"starters",
)
includeNestedModules(
"extra",
"http",
"serialization",
"serverless",
"templates"
)
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
// Build
version("kotlin", "2.0.21")
version("dokka", "1.9.20")
version("licenseReport", "2.9")
version("binValidator", "0.16.3")
version("nativeTools", "0.10.3")
version("detekt", "1.23.7")
version("jmhGradle", "0.7.2")
version("gradleWrapper", "8.10.2")
version("mkdocsMaterial", "9.5.42")
version("mermaidDokka", "0.6.0")
version("maven", "3.9.9")
version("jreleaser", "1.14.0")
// Testing
version("mockk", "1.13.13")
// TODO Replace with code using HTTP client and virtual threads
version("gatling", "3.10.5")
version("jmh", "1.37")
// Shared
version("slf4j", "2.0.16")
// scheduler
version("cronutils", "9.2.1")
// http_server_netty
version("netty", "4.1.114.Final")
version("nettyTcNative", "2.0.66.Final")
// http_server_helidon
version("helidon", "4.1.3")
// http_server_servlet
version("servlet", "6.1.0")
version("jetty", "12.0.14")
// rest_tools
version("swaggerRequestValidator", "2.43.0")
// serialization
version("jackson", "2.18.0")
version("dslJson", "2.0.2")
// serverless_http_google
version("functions", "1.1.0")
version("invoker", "1.3.1")
// templates_freemarker
version("freemarker", "2.3.33")
// templates_jte
version("jte", "3.1.13")
// templates_pebble
version("pebble", "3.2.2")
// templates_rocker
version("rocker", "1.4.0")
}
}
}
fun includeNestedModules(vararg directories: String) {
directories.forEach(::includeNestedModules)
}
fun includeNestedModules(directory: String) {
val dir = rootDir.resolve(directory)
if (!dir.exists() || !dir.isDirectory)
error("$directory directory must exist")
include(":$directory")
dir.listFiles()
?.filter { it.isDirectory && it.resolve("build.gradle.kts").isFile }
?.forEach {
val name = it.name
include(":$directory:$name")
project(":$directory:$name").projectDir = it
}
}