-
Notifications
You must be signed in to change notification settings - Fork 312
/
settings.gradle.kts
57 lines (55 loc) · 1.44 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
45
46
47
48
49
50
51
52
53
54
55
56
57
pluginManagement {
repositories {
fun exclusiveMaven(url: String, filter: Action<InclusiveRepositoryContentDescriptor>) =
exclusiveContent {
forRepository { maven(url) }
filter(filter)
}
maven("https://maven.minecraftforge.net") {
content {
includeGroupByRegex("net\\.minecraftforge.*")
}
}
exclusiveMaven("https://maven.parchmentmc.org") {
includeGroupByRegex("org\\.parchmentmc.*")
}
exclusiveMaven("https://maven.fabricmc.net/") {
includeGroup("net.fabricmc")
includeGroup("fabric-loom")
}
exclusiveMaven("https://maven.neoforged.net/releases") {
includeGroupByRegex("net\\.neoforged.*")
includeGroup("codechicken")
includeGroup("net.covers1624")
}
maven("https://repo.spongepowered.org/repository/maven-public/") {
content {
includeGroupByRegex("org\\.spongepowered.*")
includeGroupByRegex("net\\.minecraftforge.*")
}
}
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "net.minecraftforge.gradle") {
useModule("${requested.id}:ForgeGradle:${requested.version}")
}
if (requested.id.id == "org.spongepowered.mixin") {
useModule("org.spongepowered:mixingradle:${requested.version}")
}
}
}
}
val minecraftVersion: String by settings
rootProject.name = "jei-${minecraftVersion}"
include(
"Core",
"Changelog",
"Common", "CommonApi",
"NeoForge", "NeoForgeApi",
"Forge", "ForgeApi",
"Fabric", "FabricApi",
"Library",
"Gui"
)