Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse JSON with openjson #662

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sdeleuze
Copy link
Collaborator

Code originally contributed by @snicoll.

This commit upgrades the use of Jackson to plain old JSONObject. This has the advantage of significantly reduce the size of required dependencies, in particular for the graalvm-reachability-metadata module that is meant to be reused externally.

https://github.com/openjson/openjson repository is using an Apache 2 license like Jackson. I guess THIRD_PARTY_LICENSES.txt should be updated, but I will let the GraalVM team doing that in case that involves checks on Oracle side.

Please wait for a +1 from @aclement or @mminella to merge this PR.

Code originally contributed by @snicoll.

This commit upgrades the use of Jackson to plain old JSONObject. This
has the advantage of significantly reduce the size of required
dependencies, in particular for the graalvm-reachability-metadata
module that is meant to be reused externally.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 23, 2024
@snicoll
Copy link
Collaborator

snicoll commented Dec 23, 2024

Build is failing, I wasn't able to run those locally. If someone explains how to do so I am happy to look at the failures.

@sdeleuze
Copy link
Collaborator Author

You should be able to reproduce locally with ./gradlew :native-gradle-plugin:test :native-gradle-plugin:inspections.

@snicoll
Copy link
Collaborator

snicoll commented Dec 24, 2024

@sdeleuze please include snicoll@5ccc75c

Code originally contributed by @snicoll.
@sdeleuze sdeleuze force-pushed the metadata-no-jackson branch from 02d2644 to 2589b41 Compare December 24, 2024 09:26
@snicoll
Copy link
Collaborator

snicoll commented Dec 24, 2024

I guess THIRD_PARTY_LICENSES.txt should be updated

This PR does that already, pending review from the team.

@aclement
Copy link
Collaborator

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants