-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle.kts
61 lines (50 loc) · 1.68 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
plugins {
id("fabric-loom") version "1.9-SNAPSHOT"
}
version = "1.2.0"
group = "io.gitlab.jfronny"
repositories {
maven("https://maven.meteordev.org/releases")
maven("https://maven.meteordev.org/snapshots")
maven("https://maven.terraformersmc.com/")
maven("https://maven.frohnmeyer-wds.de/artifacts")
}
// https://fabricmc.net/develop
val game = "1.21.4"
dependencies {
minecraft("com.mojang:minecraft:$game")
mappings("net.fabricmc:yarn:$game+build.7:v2")
modImplementation("net.fabricmc:fabric-loader:0.16.9")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.114.0+$game")
modImplementation("meteordevelopment:meteor-client:0.6.0-SNAPSHOT")
modImplementation("com.terraformersmc:modmenu:13.0.0")
include(modImplementation("io.gitlab.jfronny:google-chat:0.9.2")!!)
val libjfVersion = "3.18.3"
include(modImplementation("io.gitlab.jfronny.libjf:libjf-config-core-v2:$libjfVersion")!!)
include(modImplementation("io.gitlab.jfronny.libjf:libjf-translate-v1:$libjfVersion")!!)
include("io.gitlab.jfronny.libjf:libjf-base:$libjfVersion")
}
tasks {
processResources {
filesMatching("fabric.mod.json") {
expand(mapOf(
"version" to version,
"mc_version" to game,
"gh_hash" to (System.getenv("GITHUB_SHA") ?: "")
))
}
}
jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName}" }
}
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release = 21
}
}