@@ -14,8 +14,6 @@ repositories {
14
14
// }
15
15
}
16
16
17
- configurations.create(" merge" )
18
-
19
17
dependencies {
20
18
minecraft(" com.mojang:minecraft:${project.properties[" minecraft_version" ]} " )
21
19
mappings(loom.layered {
@@ -31,18 +29,8 @@ dependencies {
31
29
// Kyori
32
30
modCompileOnly(" net.fabricmc:fabric-loader:${project.properties[" loader_version" ]} " )
33
31
modCompileOnly(" net.fabricmc.fabric-api:fabric-api:${project.properties[" fabric_version" ]} " )
34
- modImplementation(" net.kyori:adventure-platform-mod-shared-fabric-repack:6.1.0" ) {
35
- exclude(" net.kyori" , " adventure-api" )
36
- exclude(" net.fabricmc" )
37
- }
38
- modImplementation(" net.kyori:adventure-platform-fabric:6.1.0" ) {
39
- exclude(" net.kyori" , " adventure-api" )
40
- exclude(" net.fabricmc" )
41
- }
42
-
43
- // Shadow
44
- " merge" (" net.kyori:adventure-text-serializer-legacy:4.17.0" )
45
- " merge" (" net.kyori:adventure-api:4.17.0" )
32
+ modImplementation(include(" net.kyori:adventure-platform-mod-shared-fabric-repack:6.1.0" )!! )
33
+ modImplementation(include(" net.kyori:adventure-platform-fabric:6.1.0" )!! )
46
34
}
47
35
48
36
loom {
@@ -62,53 +50,29 @@ fabricModJson {
62
50
license = listOf (" MIT" )
63
51
environment = Environment .SERVER
64
52
entrypoints = listOf (
65
- mainEntrypoint(" net.kyori.adventure.platform.fabric.impl.AdventureFabricCommon" ),
66
- mainEntrypoint(" net.kyori.adventure.platform.fabric.impl.compat.permissions.PermissionsApiIntegration" ),
67
- entrypoint(" adventure-internal:sidedproxy/server" , " net.kyori.adventure.platform.modcommon.impl.server.DedicatedServerProxy" ),
68
- serverEntrypoint(" kr.toxicity.hud.bootstrap.fabric.FabricBootstrapImpl" ),
53
+ serverEntrypoint(" kr.toxicity.hud.bootstrap.fabric.FabricBootstrapImpl" )
69
54
)
70
55
depends = mapOf (
71
56
" fabricloader" to listOf (" >=${project.properties[" loader_version" ]} " ),
72
57
" minecraft" to listOf (" ~${project.properties[" minecraft_version" ]} " ),
73
58
" java" to listOf (" >=21" ),
74
- " fabric-api" to listOf (" *" )
75
- )
76
- mixins = listOf (
77
- mixin(" adventure-platform-fabric.accessor.mixins.json" ),
78
- mixin(" adventure-platform-fabric.mixins.json" ),
79
- mixin(" adventure-platform-mod-shared.accessor.mixins.json" ),
80
- mixin(" adventure-platform-mod-shared.mixins.json" )
59
+ " fabric-api" to listOf (" *" ),
60
+ " adventure-platform-fabric" to listOf (" *" ),
61
+ " polymer-resource-pack" to listOf (" *" ),
62
+ " placeholder-api" to listOf (" *" )
81
63
)
82
64
suggests = mapOf (
83
- " placeholder-api" to listOf (" *" ),
84
65
" luckperms" to listOf (" *" ),
85
- " polymer-resource-pack" to listOf (" *" )
86
66
)
87
67
}
88
68
89
- val addedJar by tasks.creating(Jar ::class .java) {
90
- from(sourceSets.main.get().output)
91
- duplicatesStrategy = DuplicatesStrategy .EXCLUDE
92
- configurations.modImplementation.map {
93
- it.resolve()
94
- }.get().forEach {
95
- from(zipTree(it)) {
96
- exclude(" META-INF/*.SF" )
97
- exclude(" META-INF/*.DSA" )
98
- exclude(" META-INF/*.RSA" )
99
- }
100
- }
101
- }
102
-
103
69
tasks {
104
70
remapJar {
105
- inputFile = addedJar.archiveFile
106
71
archiveClassifier = " remapped"
107
- duplicatesStrategy = DuplicatesStrategy .EXCLUDE
108
- configurations.getByName(" merge" ).forEach {
109
- from(zipTree(it)) {
110
- exclude(" META-INF/**" )
111
- }
72
+ from(configurations.modImplementation.get().filter {
73
+ ! it.name.startsWith(" fabric" )
74
+ }) {
75
+ into(" META-INF/jars" )
112
76
}
113
77
}
114
78
runServer {
0 commit comments