-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
104 lines (85 loc) · 2.67 KB
/
build.gradle.kts
File metadata and controls
104 lines (85 loc) · 2.67 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import org.spongepowered.asm.gradle.plugins.MixinExtension
plugins {
java
id("net.minecraftforge.gradle") version "[6.0,6.2)"
id("org.spongepowered.mixin") version "0.7-SNAPSHOT"
}
group = "com.ventooth"
val mod_modid = "entitymodelshaderfix"
val mod_name = "entitymodelshaderfix"
val mod_version = "1.0.0"
val mod_rootPkg = "$group.$mod_modid"
version = "${mod_version}+mc1.20.1"
base {
archivesName = "${mod_modid}-forge"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
}
repositories {
mavenCentral()
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = uri("https://api.modrinth.com/maven")
}
}
forRepositories(fg.repository)
filter {
includeGroup("maven.modrinth")
}
}
}
dependencies {
minecraft("net.minecraftforge:forge:1.20.1-47.4.0")
compileOnly("org.projectlombok:lombok:1.18.42")
annotationProcessor("org.projectlombok:lombok:1.18.42")
annotationProcessor("io.github.llamalad7:mixinextras-common:0.5.0")
compileOnly("io.github.llamalad7:mixinextras-common:0.5.0")
implementation(jarJar("io.github.llamalad7:mixinextras-forge:0.5.0") {
jarJar.ranged(this, "[0.5.0,)")
})
annotationProcessor("org.spongepowered:mixin:0.8.5:processor")
implementation(fg.deobf("maven.modrinth:${"entitytexturefeatures:7.0.2"}"))
runtimeOnly(fg.deobf("maven.modrinth:${"entity-model-features:3.0.1"}"))
runtimeOnly(fg.deobf("maven.modrinth:${"embeddium:0.3.31+mc1.20.1"}"))
implementation(fg.deobf("maven.modrinth:${"oculus:1.20.1-1.8.0"}"))
}
minecraft {
mappings("official", "1.20.1")
copyIdeResources = true
runs {
create("client") {
properties(
mapOf(
"forge.logging.console.level" to "debug",
// Needed so mixins get deobfuscated
"mixin.env.remapRefMap" to "true",
"mixin.env.refMapRemappingFile" to "$projectDir/build/createSrgToMcp/output.srg",
)
)
arg("-mixin.config=$mod_modid.mixins.json")
workingDirectory = project.file("run").canonicalPath
source(sourceSets.main.get())
}
}
}
configure<MixinExtension> {
add(sourceSets.main.get(), "$mod_modid.refmap.json")
}
tasks.jar {
manifest {
attributes("MixinConfigs" to "$mod_modid.mixins.json")
}
finalizedBy("reobfJar")
}
tasks.processResources {
inputs.property("version", mod_version)
filesMatching("META-INF/mods.toml") {
expand("version" to mod_version)
}
}