Make mapping check work again (#2066)

It never worked since the intermediary update. So 2 years of "errors"

Now made the task only print and swallows the illegal state it throws

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2021-02-13 16:57:02 -06:00 committed by GitHub
parent 9608672d4e
commit 629b96e84a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -393,11 +393,15 @@ task checkMappings {
logger.lifecycle(":checking mappings")
String[] args = [
mergedFile.getAbsolutePath(),
intermediaryJar.getAbsolutePath(),
mappingsDir.getAbsolutePath()
]
new CheckMappingsCommand().run(args)
try {
new CheckMappingsCommand().run(args)
} catch (IllegalStateException ignored) {
// just print, don't fail the task
}
}
}