From 629b96e84a8c7fcd44f87c63cbcf923000bfdf38 Mon Sep 17 00:00:00 2001 From: liach <7806504+liach@users.noreply.github.com> Date: Sat, 13 Feb 2021 16:57:02 -0600 Subject: [PATCH] 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 Co-authored-by: liach --- build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 7429e6f971..95f4111ed4 100644 --- a/build.gradle +++ b/build.gradle @@ -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 + } } }