{"id":15089591,"url":"https://github.com/hpfxd/configurate-eo-yaml","last_synced_at":"2026-01-05T01:15:23.678Z","repository":{"id":57725025,"uuid":"423263174","full_name":"hpfxd/configurate-eo-yaml","owner":"hpfxd","description":"YAML configuration loader for Configurate utilizing eo-yaml","archived":false,"fork":false,"pushed_at":"2021-11-03T18:47:05.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T04:39:33.592Z","etag":null,"topics":["configurate","java","yaml"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hpfxd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-31T21:21:19.000Z","updated_at":"2021-11-03T18:47:07.000Z","dependencies_parsed_at":"2022-09-08T04:10:37.783Z","dependency_job_id":null,"html_url":"https://github.com/hpfxd/configurate-eo-yaml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpfxd%2Fconfigurate-eo-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpfxd%2Fconfigurate-eo-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpfxd%2Fconfigurate-eo-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpfxd%2Fconfigurate-eo-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpfxd","download_url":"https://codeload.github.com/hpfxd/configurate-eo-yaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244814899,"owners_count":20514847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["configurate","java","yaml"],"created_at":"2024-09-25T09:00:55.963Z","updated_at":"2026-01-05T01:15:23.634Z","avatar_url":"https://github.com/hpfxd.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# configurate-eo-yaml\n\nYAML configuration loader for [Configurate](https://github.com/SpongePowered/Configurate/)\nusing [eo-yaml](https://github.com/decorators-squad/eo-yaml/).\n\n## Why?\n\nCurrently in Configurate, the YAML loader which is implemented using SnakeYAML does not support writing comments.\n\nThe only loaders that support round-tripping comments are Hocon and XML. I personally find XML to be a bit annoying to\nuse for configurations (looking at you Maven...), and the Hocon loader uses a Map implementation internally that does\nnot preserve the ordering of entries, which means when saving, the options are all over the place.\n\neo-yaml both properly preserves entry ordering, and supports round-tripping comments. :)\n\n## Usage\n\n**Gradle**\n```kotlin\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation(\"com.hpfxd.configurate:configurate-eo-yaml:1.0.0\")\n}\n```\n\n**Maven**\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.hpfxd.configurate\u003c/groupId\u003e\n        \u003cartifactId\u003econfigurate-eo-yaml\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\nOnce you have the library imported into your project, you can just use it like any other Configurate loader:\n```java\nEOYamlConfigurationLoader loader = EOYamlConfigurationLoader.builder()\n        .file(new File(\"./config.yml\"))\n        .build();\n```\n\nThe loader only has one unique option: **guessIndentation**. \nSee [the eo-yaml wiki](https://github.com/decorators-squad/eo-yaml/wiki/Validation-of-Indentation) for more information.\nYou can set this option by calling `guessIndentation(boolean)` on the builder.\nBy default, this option is set to `false`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpfxd%2Fconfigurate-eo-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpfxd%2Fconfigurate-eo-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpfxd%2Fconfigurate-eo-yaml/lists"}