-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
67 lines (54 loc) · 1.46 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
plugins {
id("fabric-loom") version "1.4.5"
id("org.cadixdev.licenser") version "0.6.1"
}
val modVersion: String by project
val minecraftVersion: String by project
val yarnMappings: String by project
val loaderVersion: String by project
group = "dev.denwav"
version = modVersion
val modInclude: Configuration by configurations.creating {
exclude(group = "net.fabricmc.fabric-api")
}
configurations.modApi {
extendsFrom(modInclude)
}
configurations.include {
extendsFrom(modInclude)
}
repositories {
mavenCentral()
maven("https://maven.terraformersmc.com/releases/")
maven("https://maven.shedaniel.me/")
}
dependencies {
minecraft("com.mojang:minecraft:$minecraftVersion")
mappings("net.fabricmc:yarn:$yarnMappings:v2")
modImplementation("net.fabricmc:fabric-loader:$loaderVersion")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.92.0+1.20.4")
modInclude("me.shedaniel.cloth:cloth-config-fabric:13.0.121")
modImplementation("com.terraformersmc:modmenu:9.0.0")
}
java {
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
license {
header(file("header.txt"))
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release = 17
}
tasks.processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand("version" to project.version)
}
}
tasks.jar {
from("license.txt")
}