quarkusio/quarkus

Check that no dependencies include native-image metadata

Open

#16,062 建立於 2021年3月26日

在 GitHub 查看
 (2 留言) (2 反應) (0 負責人)Java (2,464 fork)batch import
area/buildarea/native-imagehelp wantedkind/enhancement

倉庫指標

Star
 (12,967 star)
PR 合併指標
 (平均合併 6天 4小時) (30 天內合併 325 個 PR)

描述

Description

Library maintainers are now encouraged to add metadata for native-image within the jar files to improve the out-of-the-box experience on GraalVM native.

This is great as it will likely, on average, reduce the friction to adopt native-image in the larger ecosystem; however we've already witnessed that in some cases such metadata might be incompatible with flags from other libraries, or just have a different impact than what the original author intended.

My proposal is to introduce some assertions in our build to verify that no 3rd party library we depend on has any such metadata; that's not to say we want to ban them, but this is meant to make sure we actually notice when some apparently innocent version upgrade of a random library pulls in new flags on the classpath, so that we get a chance to investigate them and test them, and possibly apply corrective measures.

貢獻者指南