forked from GraxCode/threadtear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
35 lines (29 loc) · 1.07 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
pluginManagement {
plugins {
fun String.v() = extra["$this.version"].toString()
fun PluginDependenciesSpec.idv(id: String, key: String = id) = id(id) version key.v()
idv("com.github.autostyle")
idv("com.github.johnrengelman.shadow", "shadow")
idv("com.github.vlsi.crlf", "com.github.vlsi.vlsi-release-plugins")
idv("com.github.vlsi.gradle-extensions", "com.github.vlsi.vlsi-release-plugins")
idv("com.github.vlsi.license-gather", "com.github.vlsi.vlsi-release-plugins")
}
}
rootProject.name = "threadtear"
include("dependencies-bom", "core", "gui")
for (p in rootProject.children) {
if (p.children.isEmpty()) {
// Rename leaf projects only
// E.g. we don't expect to publish examples as a Maven module
p.name = "${rootProject.name}-${p.name}"
}
}
fun property(name: String) =
when (extra.has(name)) {
true -> extra.get(name) as? String
else -> null
}
property("localDarklaf")?.ifBlank { "../darklaf" }?.let {
println("Importing project '$it'")
includeBuild(it)
}