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

Add support for YAML formatted config file #32

Closed
jonbullock opened this issue Aug 22, 2013 · 6 comments
Closed

Add support for YAML formatted config file #32

jonbullock opened this issue Aug 22, 2013 · 6 comments
Milestone

Comments

@jonbullock
Copy link
Member

So more complex data structures can be used.

No specific use cases as yet, will be done once requirement exists.

Research:

http://www.yaml.org/
http://stackoverflow.com/questions/450399/which-java-yaml-library-should-i-use
https://code.google.com/p/snakeyaml/

@s17t
Copy link
Contributor

s17t commented Oct 11, 2013

Also consider TypeSafe conf library [0]. It doesn't support YAML but HOCON is kind to human being too and it also support plain JSON, properties files and more like Inheritance.

[0] https://github.com/typesafehub/config

@jonbullock
Copy link
Member Author

Thanks, that looks ideal for keeping backwards compatibility with existing config files.

@wadechandler
Copy link

I would really like to support "side car" files for not just config, but for meta-data. I think that would make the content cleaner, and keep out foreign syntax. I will create a separate issue for that.

@LightGuard
Copy link

Doesn't groovy support reading YAML out of the box? If so, we wouldn't need to add any dependencies and it should be a simple fix to add it to the list of support config parsers.

@jonbullock
Copy link
Member Author

It does but Groovy is an optional dependency at present and we only include the modules needed for it's template engines. Adding the YAML dependency is not a problem though. However, I assume this is in relation to #680, if so I'd prefer to keep content for output separate from the config.

@ge0ffrey
Copy link
Contributor

ge0ffrey commented Apr 27, 2021

An illustration on how it works in Awestruct (= dead project that we want to replace by JBake or Jekyll), which I created for the other image:
image

Source code: https://github.com/kiegroup/optaplanner-website

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

No branches or pull requests

5 participants