-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.fabricmc.gradle.kts
More file actions
77 lines (69 loc) · 2.07 KB
/
Copy pathbuild.fabricmc.gradle.kts
File metadata and controls
77 lines (69 loc) · 2.07 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
plugins {
id("mod-platform")
id("net.fabricmc.fabric-loom")
}
platform {
loader = "fabric"
dependencies {
required("minecraft") {
versionRange = stonecutter.current.version
}
required("factory_api") {
slug("factory-api")
versionRange = ">=${prop("factory_api_version")}"
}
required("fabricloader") {
versionRange = ">=${libs.fabric.loader.get().version}"
}
optional("modmenu") {}
}
}
configurations.configureEach {
resolutionStrategy {
force("net.fabricmc:fabric-loader:${prop("fabric_loader_version")}")
}
}
loom {
accessWidenerPath = rootProject.file(platform.awFile)
runs.named("client") {
client()
ideConfigGenerated(true)
runDir = "run/"
environment = "client"
programArgs("--username=Dev")
configName = "Fabric Client"
}
runs.named("server") {
server()
ideConfigGenerated(true)
runDir = "run/"
environment = "server"
configName = "Fabric Server"
}
}
fabricApi {
configureDataGeneration {
outputDirectory = file("${rootDir}/versions/datagen/${stonecutter.current.version.split("-")[0]}/src/main/generated")
client = true
}
}
repositories {
mavenCentral()
strictMaven("https://maven.terraformersmc.com/", "com.terraformersmc") { name = "TerraformersMC" }
strictMaven("https://api.modrinth.com/maven", "maven.modrinth") { name = "Modrinth" }
maven("https://raw.githubusercontent.com/Kyubion-Studios/Mod-Resources/main/maven/") { name = "Kyubion Mod Resources" }
maven("https://maven.isxander.dev/releases")
}
dependencies {
minecraft("com.mojang:minecraft:${stonecutter.current.version}")
implementation(libs.fabric.loader)
implementation("net.fabricmc.fabric-api:fabric-api:${prop("fabric_api_version")}")
implementation("com.terraformersmc:modmenu:${prop("modmenu_version")}")
api("wily.factory_api:factory_api-fabric:${stonecutter.current.version}-${prop("factory_api_version")}")
implementation("wily.legacy:legacy-fabric:${stonecutter.current.version}-${prop("legacy4j_version")}")
implementation(libs.moulberry.mixinconstraints)
include(libs.moulberry.mixinconstraints)
}
tasks.withType<Javadoc> {
enabled = false
}