Skip to content

Conversation

@jormundur00
Copy link
Member

@jormundur00 jormundur00 commented Nov 24, 2025

What does this PR do?

In this PR we introduce a script for easy checking if a library is supported by the GraalVM Reachability Metadata repository. We do this by parsing the index.json file for the particular library (if it exists) and looking for the requested version under tested-versions. If it exists, the library is supported.

To use the script, position yourself in the root of the repository and call: ./check-library-support.sh <groupId:artifactId:version> (e.g.: org.hibernate.orm:hibernate-core:7.0.0.Final).

Fixes: #808.

P.S: We should wait for the merge of #802 before merging this PR, as we should add the usage of the script to the README.md.

@jormundur00 jormundur00 self-assigned this Nov 24, 2025
@jormundur00 jormundur00 added the enhancement New feature or request label Nov 24, 2025
fi

# Check if the version exists in any tested-versions (exact match)
MATCH=$(jq --arg ver "$VERSION" 'any(.[]["tested-versions"][]?; . == $ver)' "$INDEX_FILE")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go without jq. We need to add a section in the README.md that allows a copy-paste script similar to install scripts such as curl -s "https://get.sdkman.io" | bash.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replaced the usage of jq with awk and migrated the script to be usable with curl, so it can now be used without cloning the repository. The copy-paste command can now be found in the README.md too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: We need a simple copy-paste script that allows to check if a maven artifact is supported

2 participants