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 HOCON configuration format #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

TanVD
Copy link
Owner

@TanVD TanVD commented Jul 19, 2024

Add support for HOCON configuration format and update necessary gradle files

  • Gradle Configuration

    • Add include(":konfy-hocon") to settings.gradle.kts
  • HOCON Provider Implementation

    • Create HoconProvider.kt in konfy-hocon/src/main/kotlin/tanvd/konfy/hocon/
    • Implement HoconProvider class extending ConfigProvider
    • Add constructor that takes a Config object
    • Implement fetch method to retrieve values from the HOCON config
  • HOCON Conversion Utilities

    • Create Conversion.kt in konfy-hocon/src/main/kotlin/tanvd/konfy/hocon/utils/
    • Implement function to convert HOCON values to the desired type
  • Testing

    • Create HoconProviderTest.kt in konfy-hocon/src/test/kotlin/tanvd/konfy/hocon/
    • Implement tests for HoconProvider class
    • Test fetching values from the HOCON config
    • Create config.conf in konfy-hocon/src/test/resources/ with sample configuration values for testing

For more details, open the Copilot Workspace session.

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

Successfully merging this pull request may close these issues.

1 participant