-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
44 lines (37 loc) · 1.28 KB
/
settings.gradle.kts
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
val forgeGradleVersion: String by settings
val curseGradleVersion: String by settings
val minecraftVersion: String by settings
val githubReleaseVersion: String by settings
val kotlinVersion: String by settings
val moduleMappings = mapOf(
"net.minecraftforge.gradle.forge" to "net.minecraftforge.gradle:ForgeGradle"
)
val versionMappings = mapOf(
"net.minecraftforge.gradle.forge" to forgeGradleVersion,
"com.matthewprenger.cursegradle" to curseGradleVersion,
"com.github.breadmoirai.github-release" to githubReleaseVersion,
"org.jetbrains.kotlin.jvm" to kotlinVersion
)
rootProject.name = "pura-magio-$minecraftVersion"
pluginManagement {
repositories {
gradlePluginPortal()
maven { url = uri("http://files.minecraftforge.net/maven") }
}
resolutionStrategy {
eachPlugin {
val id = requested.id.id
for((requested, target) in moduleMappings) {
if(id == requested) {
useModule("$target:${versionMappings[requested]}")
return@eachPlugin
}
}
for((mappingId, mappingVersion) in versionMappings) {
if(id == mappingId)
useVersion(mappingVersion)
}
}
}
}
includeBuild("craftlin")