You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
640 B
Groovy
27 lines
640 B
Groovy
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
mavenCentral()
|
|
maven {
|
|
name 'Fabric'
|
|
url 'https://maven.fabricmc.net/'
|
|
}
|
|
maven {
|
|
name 'Jitpack'
|
|
url 'https://jitpack.io/'
|
|
}
|
|
}
|
|
resolutionStrategy {
|
|
eachPlugin {
|
|
if (
|
|
requested.id.id == "fabric-loom" && !requested.version?.endsWith("-SNAPSHOT")) {
|
|
if (
|
|
requested.id.id == "fabric-loom" && !requested.version?.contains("+")) {
|
|
useModule("com.github.Chocohead.Fabric-Loom:fabric-loom:${requested.version}")
|
|
} else if (requested.id.id == "fabric-loom") {
|
|
useModule("net.fabricmc:fabric-loom:${requested.version}")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |