Skip to content

Flexible and robust static access configuration api.

License

Notifications You must be signed in to change notification settings

J4C0B3Y/ConfigAPI

Repository files navigation

ConfigAPI

Flexible and robust static access configuration api.

Special thanks to dejvokep for BoostedYAML, which is used internally for yaml parsing and file management.

Trusted and used by Refine Development.

Features

  • Static and dynamic config value access
  • Use inbuilt or register custom type loading
  • Move config values with path relocations
  • Configurable config file backup system
  • Remove unused / unknown keys + logging
  • File structure and value formatting
  • Annotation based field modifiers
  • Header comment at top of config file
  • Small and lightweight (~490kb)

Support

If you need any assistance using or installing my ConfigAPI, feel free to contact me by either adding me on discord (@J4C0B3Y) or by creating an issue and explaining your problem or question.

Installation

Prebuilt jars can be found in releases.

NOTE:
It is recommended to relocate the library to prevent version mismatches with other projects that use the api.

Maven & Gradle

  • Replace PLATFORM with your desired platform. (eg, core).
  • Replace VERSION with the latest release version on GitHub.
repositories {
    maven("https://repo.j4c0b3y.net/public/")
}

dependencies {
    implementation("net.j4c0b3y.ConfigAPI:PLATFORM:VERSION")
}
<repositories>
    <repository>
        <id>j4c0b3y-public</id>
        <url>https://repo.j4c0b3y.net/public/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>net.j4c0b3y.ConfigAPI</groupId>
        <artifactId>PLATFORM</artifactId>
        <version>VERSION</version>
    </dependency>
</dependencies>

Building

  1. Clone this repository and enter its directory.
  2. Run the intellij build configuration by clicking the top right icon.
  3. Alternatively you can run gradle classes shadow delete copy install.
  4. The output jar files will be located in the jars directory.

Usage

Coming soon, for now message me on discord for help.

Want more?

Each and every class in my config api has detailed javadocs explaining what methods and variables are used for, and functionality of internal methods.

Made with ❤ // J4C0B3Y 2024

About

Flexible and robust static access configuration api.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages