mirror of https://github.com/FabricMC/yarn.git
Fixes
This commit is contained in:
parent
788b5d0bb7
commit
bee72acc3b
|
@ -151,7 +151,7 @@ tasks.register('yarnCommon', EnigmaTask) {
|
|||
mappings = mappingsDir
|
||||
}
|
||||
|
||||
tasks.register('checkMappings') {
|
||||
def checkPackages = tasks.register('checkPackages') {
|
||||
group = buildMappingGroup
|
||||
inputs.dir mappingsDir
|
||||
inputs.file mapIntermediaryJar.output
|
||||
|
@ -552,11 +552,12 @@ javadocLint {
|
|||
mappingDirectory = file("mappings")
|
||||
}
|
||||
|
||||
def checkDuplicates = tasks.register("checkDuplicateNames", CheckMappingsTask) {
|
||||
input = mergeV2.outputFile
|
||||
def checkMappings = tasks.register("checkMappings", CheckMappingsTask) {
|
||||
input = mergeV2.output
|
||||
}
|
||||
|
||||
check.dependsOn checkDuplicates
|
||||
check.dependsOn checkPackages
|
||||
check.dependsOn checkMappings
|
||||
check.dependsOn javadocLint
|
||||
|
||||
publishing {
|
||||
|
|
|
@ -34,6 +34,7 @@ public abstract class CheckMappingsTask extends FilamentTask implements WithFile
|
|||
for (MappingTree.ClassMapping classMapping : tree.getClasses()) {
|
||||
method: for (MappingTree.MethodMapping method : classMapping.getMethods()) {
|
||||
Set<String> names = new HashSet<>();
|
||||
|
||||
for (int id = minNamespaceId; id < maxNamespaceId; id++) {
|
||||
String name = method.getName(id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue