-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
64 lines (51 loc) · 1.43 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
plugins {
`java-library`
id("fabric-loom")
id("com.modrinth.minotaur")
}
fun p(key: String): String = properties[key] as String
version = "1.3.0"
base.archivesName.set("${rootProject.name}-mc${p("minecraft")}")
description = "A countdown to the detonation of a TNT."
repositories {
//maven("https://jitpack.io")
//maven("https://maven.terraformersmc.com/releases/")
}
dependencies {
minecraft("com.mojang:minecraft:${p("minecraft")}")
mappings("net.fabricmc:yarn:${p("yarn")}:v2")
modImplementation("net.fabricmc:fabric-loader:${p("loader")}")
//modRuntimeOnly("com.terraformersmc:modmenu:5.0.2")
//modRuntimeOnly("com.github.astei:lazydfu:0.1.3")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
withSourcesJar()
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
jar {
from("LICENSE") {
rename { "LICENSE_${rootProject.name}" }
}
}
processResources {
filteringCharset = "UTF-8"
filesMatching("fabric.mod.json") {
expand(
"version" to project.version
)
}
}
}
modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("tnttime")
versionNumber.set("mc$version")
versionName.set("Tnt Time $version for 1.20 and 1.20.1")
versionType.set("release")
gameVersions.addAll("1.20", "1.20.1")
uploadFile.set(tasks["remapJar"])
}