forked from 1024-byteeeee/Carpet-AMS-Addition-Legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
39 lines (35 loc) · 866 Bytes
/
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
import groovy.json.JsonSlurper
pluginManagement {
def pluginMappings = [
"com.replaymod.preprocess" : "com.github.1024-byteeeee:preprocessor"
]
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
maven {
name = 'Jitpack'
url = "https://jitpack.io"
}
mavenCentral()
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
switch (requested.id.id) {
case { pluginMappings.containsKey(it) } :
useModule("${pluginMappings[requested.id.id]}:${requested.version}")
break
}
}
}
}
def versionsFilePath = 'minecraftVersions' + '.json'
def versions = new JsonSlurper().parseText(file(versionsFilePath).text)
versions.versions.each {
version -> include(":$version")
def proj = project(":$version")
proj.projectDir = file("versions/$version")
proj.buildFileName = "../../common.gradle"
}