-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.gradle
37 lines (31 loc) · 1.05 KB
/
settings.gradle
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
pluginManagement {
repositories {
gradlePluginPortal()
maven { url "https://maven.fabricmc.net/" }
maven { url "https://maven.architectury.dev/" }
maven { url "https://files.minecraftforge.net/maven/" }
maven { url "https://maven.kikugie.dev/releases" }
maven { url "https://maven.kikugie.dev/snapshots" }
}
}
plugins {
id "dev.kikugie.stonecutter" version "0.5-beta.5"
}
rootProject.name = 'structurify'
def dists = [
common: stonecutter_enabled_common_versions.split(',').collect { it.trim() }.toList(),
fabric: stonecutter_enabled_fabric_versions.split(',').collect { it.trim() }.toList(),
forge: stonecutter_enabled_forge_versions.split(',').collect { it.trim() }.toList(),
neoforge: stonecutter_enabled_neoforge_versions.split(',').collect { it.trim() }.toList(),
]
def uniqueVersions = dists.values().flatten().collect { it.trim() }.unique()
stonecutter {
create(rootProject) {
versions(uniqueVersions as String[])
dists.each { branchName, branchVersions ->
branch(branchName, b -> {
b.versions(branchVersions as String[])
})
}
}
}