-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
38 lines (31 loc) · 996 Bytes
/
build.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
plugins {
id("fabric-loom") version "0.10-SNAPSHOT"
}
version = property("mod_version")!!
group = property("maven_group")!!
val finalName = "${property("archives_base_name")}-${property("mod_version")}"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
withSourcesJar()
}
dependencies {
minecraft("com.mojang:minecraft:${property("minecraft_version")}")
mappings("net.fabricmc:yarn:${property("yarn_mappings")}:v2")
modImplementation("net.fabricmc:fabric-loader:${property("loader_version")}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${property("fabric_version")}")
}
tasks {
processResources {
filteringCharset = Charsets.UTF_8.name()
filesMatching("fabric.mod.json") {
expand("version" to project.version)
}
}
remapJar {
archiveFileName.set("${finalName}.jar")
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
}