-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
67 lines (55 loc) · 1.4 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
import net.fabricmc.loom.task.RemapJarTask
plugins {
id("fabric-loom") version "1.4-SNAPSHOT"
id("com.github.hierynomus.license-base") version "0.16.1"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
val minecraftVersion: String by project
val loaderVersion: String by project
dependencies {
minecraft("com.mojang", "minecraft", minecraftVersion)
mappings(loom.officialMojangMappings())
modImplementation("net.fabricmc", "fabric-loader", loaderVersion)
}
license {
header = file("header.txt")
encoding = "UTF-8"
mapping("java", "DOUBLESLASH_STYLE")
include("**/*.java")
}
tasks {
check {
finalizedBy(licenseMain)
}
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(17)
}
withType<ProcessResources> {
inputs.property("project.version", project.version)
filteringCharset = "UTF-8"
filesMatching("fabric.mod.json") {
expand("version" to project.version)
}
}
withType<RemapJarTask> {
archiveBaseName.set("EpicForcedResourcePackBypassMod")
}
withType<Jar> {
inputs.property("project.group", project.group)
inputs.property("project.name", project.name)
inputs.file("COPYING")
inputs.file("COPYING.LESSER")
manifestContentCharset = "UTF-8"
metaInf {
into("${project.group}/${project.name}") {
from("COPYING")
from("COPYING.LESSER")
}
}
}
}