-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
settings.gradle.kts
45 lines (41 loc) · 1.05 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
rootProject.name = "FallingTree"
pluginManagement {
repositories {
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
maven {
name = "MinecraftForge"
url = uri("https://maven.minecraftforge.net")
}
maven {
name = "MinecraftNeoForge"
url = uri("https://maven.neoforged.net/releases")
}
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "net.minecraftforge.gradle") {
useModule("${requested.id}:ForgeGradle:${requested.version}")
}
}
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention").version("0.8.0")
}
val includeFabric: String by settings
val includeForge: String by settings
val includeNeoForge: String by settings
include("common")
if (includeFabric.toBoolean()) {
include("fabric")
}
if (includeForge.toBoolean()) {
include("forge")
}
if (includeNeoForge.toBoolean()) {
include("neoforge")
}