Skip to content

Commit

Permalink
Make mapping check work again (#2066)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
liach and liach committed Feb 13, 2021
1 parent 9608672 commit 629b96e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit 629b96e

Please sign in to comment.