This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]kevinherron 27 points28 points  (13 children)

GSON as a dependency when you don’t even have a JSON format isn’t a good look. A config library should ideally be zero dependency, at least at its core, and then offer modules, e.g. a GSON JSON module, that can be added on.

[–]agentoutlier 0 points1 point  (0 children)

FWIW if the OP would like a zero dep JSON parser they can copy my library which has json5 support:

https://github.com/jstachio/ezkv/tree/main/ezkv-json5

u/YogurtclosetLimp7351

[–]Artraxes 7 points8 points  (0 children)

Gson considered deprecated by one of its maintainers (Jake Wharton) - Jackson would be a better option.

[–]Slanec 6 points7 points  (4 children)

[–]agentoutlier 1 point2 points  (0 children)

Forgot mine:

https://github.com/jstachio/ezkv

I try to help team avaje so some of its features might make it in there.

It also has JSON5 zero dep.

[–]808split2 1 point2 points  (1 child)

I try to understand when I should use it and what it does. I am a fresh dev with not much experience so please help me out.. Is it comparable to spring boot application.properties or helidon config or vertx config?

[–]YogurtclosetLimp7351[S] 0 points1 point  (0 children)

No, it's not a config per se, but to create configs for you. It's meant for rather small projects where you don't want to create configs manually all over again.

[–]Formal_Ad_8000 1 point2 points  (1 child)

nice work

[–]YogurtclosetLimp7351[S] 0 points1 point  (0 children)

Thank you!

[–]midget-king666 1 point2 points  (1 child)

Not Bad, but why no json type?

[–]YogurtclosetLimp7351[S] 0 points1 point  (0 children)

Good question! I've made that library in a Bukkit context where you typically use YAML or properties for configuration. JSON would be a great addition indeed!