-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.gradle
55 lines (47 loc) · 1.31 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
pluginManagement {
repositories {
mavenCentral()
maven {
url = "https://maven.neoforged.net/releases"
}
maven {
url = "https://maven.minecraftforge.net/"
}
maven {
url = "https://maven.fabricmc.net/"
}
maven {
url = "https://maven.wagyourtail.xyz/releases"
}
maven {
url 'https://3arthqu4ke.github.io/maven'
}
maven {
url = "https://maven.wagyourtail.xyz/snapshots"
}
gradlePluginPortal() {
content {
excludeGroup("org.apache.logging.log4j")
}
}
}
}
def loadVersions() {
def versions = fileTree("versions").files.name
for (int i = 0; i < versions.size(); i++) {
versions[i] = versions[i].replaceAll("\\.properties", "")
}
versions.sort()
var mcVersion = minecraft_version
var mcIndex = versions.indexOf(minecraft_version)
def props = new Properties()
props.load(new FileInputStream("$rootDir/versions/" + "$mcVersion" + ".properties"))
props.each { prop ->
gradle.ext.set(prop.key, prop.value)
}
gradle.ext.mc_versions = versions
gradle.ext.mc_index = mcIndex
}
loadVersions()
include 'api'
rootProject.name = 'mc-runtime-test'