mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Merge pull request #2062 from EngineHub/fix/mixin-mixup
Un-mixup the mixins.
This commit is contained in:
commit
356cd2c8b2
@ -39,7 +39,7 @@
|
|||||||
"fabric-permissions-api-v0": "*"
|
"fabric-permissions-api-v0": "*"
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"worldedit.mixins.json"
|
"worldedit-fabric.mixins.json"
|
||||||
],
|
],
|
||||||
"accessWidener" : "worldedit.accesswidener"
|
"accessWidener" : "worldedit.accesswidener"
|
||||||
}
|
}
|
||||||
|
@ -57,8 +57,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
configure<org.spongepowered.asm.gradle.plugins.MixinExtension> {
|
configure<org.spongepowered.asm.gradle.plugins.MixinExtension> {
|
||||||
add(sourceSets["main"], "worldedit.mixins.refmap.json")
|
add(sourceSets["main"], "worldedit-forge.mixins.refmap.json")
|
||||||
config("worldedit.mixins.json")
|
config("worldedit-forge.mixins.json")
|
||||||
}
|
}
|
||||||
|
|
||||||
configure<BasePluginConvention> {
|
configure<BasePluginConvention> {
|
||||||
@ -165,7 +165,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
val reobf = extensions.getByName<NamedDomainObjectContainer<RenameJarInPlace>>("reobf")
|
||||||
val reobf = extensions.getByName<NamedDomainObjectContainer<RenameJarInPlace>>("reobf")
|
reobf.create("shadowJar")
|
||||||
reobf.create("shadowJar")
|
|
||||||
}
|
|
||||||
|
@ -9,5 +9,6 @@
|
|||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
}
|
},
|
||||||
|
"refmap": "worldedit-forge.mixins.refmap.json"
|
||||||
}
|
}
|
@ -13,9 +13,29 @@
|
|||||||
project(":worldedit-forge").tasks.named("reobfShadowJar")
|
project(":worldedit-forge").tasks.named("reobfShadowJar")
|
||||||
)
|
)
|
||||||
from(zipTree({remapFabric.get().archiveFile}))
|
from(zipTree({remapFabric.get().archiveFile}))
|
||||||
from(zipTree({project(":worldedit-forge").tasks.getByName("shadowJar").outputs.files.singleFile}))
|
from(zipTree({project(":worldedit-forge").tasks.getByName("shadowJar").outputs.files.singleFile})) {
|
||||||
|
// Duplicated first-party files
|
||||||
|
exclude("META-INF/services/org.enginehub.piston.CommandManagerService")
|
||||||
|
exclude("lang/")
|
||||||
|
// No-brainer library excludes
|
||||||
|
exclude("com/sk89q/jchronic/")
|
||||||
|
exclude("com/sk89q/jnbt/")
|
||||||
|
exclude("com/sk89q/minecraft/")
|
||||||
|
exclude("com/sk89q/util/")
|
||||||
|
exclude("com/thoughtworks/")
|
||||||
|
exclude("net/royawesome/")
|
||||||
|
exclude("org/enginehub/piston/")
|
||||||
|
// Exclude worldedit-core
|
||||||
|
exclude {
|
||||||
|
val pathString = it.relativePath.pathString
|
||||||
|
pathString.startsWith("com/sk89q/worldedit/") && !pathString.startsWith("com/sk89q/worldedit/forge/")
|
||||||
|
}
|
||||||
|
// Questionable excludes. So far the two files from each jar are the same.
|
||||||
|
exclude("defaults/worldedit.properties")
|
||||||
|
exclude("pack.mcmeta")
|
||||||
|
}
|
||||||
|
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy = DuplicatesStrategy.FAIL
|
||||||
archiveClassifier.set("dist")
|
archiveClassifier.set("dist")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user