-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
48 lines (42 loc) · 1.14 KB
/
settings.gradle.kts
File metadata and controls
48 lines (42 loc) · 1.14 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
pluginManagement {
repositories {
maven("https://maven.kikugie.dev/snapshots")
maven("https://maven.fabricmc.net/")
gradlePluginPortal()
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("dev.kikugie.stonecutter") version "0.7.10"
}
rootProject.name = "catharsis"
val versions = listOf("1.21.11", "1.21.10")
stonecutter {
create(rootProject) {
versions(versions)
vcsVersion = versions.first()
}
}
dependencyResolutionManagement {
versionCatalogs {
versions.forEach {
val name = it.replace(".", "")
println("creating version catalogue libs$name")
create("libs$name") {
from(
files(
rootProject.projectDir.resolve("gradle/${it.replace(".", "_")}.versions.toml")
)
)
}
}
}
}
fun includeProject(name: String, fileName: String = "$name.gradle.kts") {
include(name)
project(":$name").apply {
buildFileName = "../$fileName"
}
}
includeProject("repo")
includeProject("scripts")