forked from jpenilla/better-fabric-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (56 loc) · 2.13 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
62
63
64
65
66
67
68
69
plugins {
val indraVersion = "2.1.1"
id("net.kyori.indra") version indraVersion
id("net.kyori.indra.checkstyle") version indraVersion
id("net.kyori.indra.license-header") version indraVersion
id("quiet-fabric-loom")
}
version = "1.1.4-SNAPSHOT"
group = "xyz.jpenilla"
description = "Server-side Fabric mod enhancing the console with tab completions, colored log output, command syntax highlighting, command history, and more."
val minecraftVersion = "1.19.3"
dependencies {
minecraft("com.mojang", "minecraft", minecraftVersion)
mappings(loom.officialMojangMappings())
modImplementation("net.fabricmc", "fabric-loader", "0.14.11")
modImplementation("net.fabricmc.fabric-api", "fabric-api", "0.68.1+1.19.3")
annotationProcessor("org.apache.logging.log4j", "log4j-core", "2.17.1")
val jlineVersion = "3.21.0"
implementation(include("org.jline", "jline", jlineVersion))
implementation(include("org.jline", "jline-terminal-jansi", jlineVersion))
implementation(include("org.fusesource.jansi", "jansi", "2.4.0"))
modImplementation(include("net.kyori", "adventure-platform-fabric", "5.6.0"))
implementation(include("net.kyori", "adventure-text-serializer-legacy", "4.12.0"))
implementation(include("com.typesafe:config:1.4.2")!!)
implementation(include("io.leangen.geantyref:geantyref:1.3.13")!!)
implementation(include("org.spongepowered:configurate-core:4.1.2")!!)
implementation(include("org.spongepowered:configurate-hocon:4.1.2")!!)
compileOnly("org.checkerframework", "checker-qual", "3.28.0")
implementation(include("net.fabricmc", "mapping-io", "0.3.0"))
}
indra {
javaVersions().target(17)
}
license {
exclude("io/papermc/**")
}
tasks {
processResources {
val props = mapOf(
"name" to "Better Fabric Console",
"description" to project.description,
"version" to project.version,
"githubUrl" to "https://github.com/jpenilla/better-fabric-console"
)
inputs.properties(props)
filesMatching("fabric.mod.json") {
expand(props)
}
}
jar {
from("LICENSE")
}
remapJar {
archiveFileName.set("${project.name}-mc$minecraftVersion-${project.version}.jar")
}
}