-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
41 lines (34 loc) · 1.06 KB
/
Copy pathsettings.gradle
File metadata and controls
41 lines (34 loc) · 1.06 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
import java.nio.file.Files
import java.nio.file.Path
import java.util.*
pluginManagement {
repositories {
mavenCentral()
maven { url = "https://maven.fabricmc.net" }
maven { url = "https://maven.architectury.dev" }
maven { url = "https://maven.minecraftforge.net" }
maven { url = "https://maven.kikugie.dev/releases" }
}
}
buildscript {
System.setProperty("rootDir", rootProject.projectDir.absolutePath.toString())
Properties properties = new Properties()
var path = Path.of(System.getProperty("rootDir")).resolve("gradle.properties")
properties.load(path.newInputStream())
}
plugins {
id "dev.kikugie.stonecutter" version "$stonecutter_version"
}
var loaders = properties["enabled_platforms"].toString().split(",")
stonecutter {
shared {
// Stonecutter requires a semantic version
for (final def r in loaders) {
vers(r, r.split("-")[0])
}
// 1.20.1 is used as opposed to the 1.19.2 version MPUC uses.
vcsVersion = "1.20.1-fabric"
}
create rootProject
}
rootProject.name = "mpucmm"