-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
50 lines (41 loc) · 1.44 KB
/
build.gradle.kts
File metadata and controls
50 lines (41 loc) · 1.44 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
plugins {
id("fabric-loom") version "1.11-SNAPSHOT"
}
base {
group = property("maven_group") as String
version = property("mod_version") as String
archivesName.set(property("archives_base_name") as String)
}
java.toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
maven(url = "https://maven.parchmentmc.org/") // parchment
maven(url = "https://maven.terraformersmc.com/") // mod-menu
}
dependencies {
minecraft("com.mojang", "minecraft", property("minecraft_version") as String)
compileOnly("ca.weblite", "java-objc-bridge", "1.1")
mappings(loom.layered {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.21.9:2025.10.05@zip")
})
modImplementation("net.fabricmc", "fabric-loader", property("loader_version") as String)
modImplementation(fabricApi.module("fabric-command-api-v2", property("fabric_version") as String))
modImplementation(fabricApi.module("fabric-resource-loader-v0", property("fabric_version") as String))
modImplementation("com.terraformersmc", "modmenu", property("mod-menu_version") as String)
}
tasks{
processResources {
inputs.property("version", project.version)
filteringCharset = "UTF-8"
filesMatching("fabric.mod.json") {
expand(mutableMapOf("version" to version))
}
}
jar {
from("LICENSE") {
rename { "${it}_${project.name}" }
}
}
}