Annotaml

DiscordMaven

Annotaml is a library for generating YAML files from Java classes. It uses SnakeYAML for parsing and saving YAML files, providing an extremely easy and intuitive way of reading and writing yaml (configuration) files to objects through a set of Java annotations.

Annotate a configuration object to your liking and load/reload it to/from a YAML file with defaults, without having to bother working with reading and writing to/from keyed routes.

Requires Java 11+.

Installation

Annotaml is available on Maven. You can browse the Javadocs here.

Gradle

Gradle setup instructions

First, add the Maven repository to your build.gradle file.:

repositories {
    maven { url "https://repo.william278.net/releases" }
}

Then, add the dependency itself. Replace VERSION with the latest release version. (e.g. 2.0.2). If you want to target pre-release "snapshot" versions (not reccommended), you should use the /snapshots repository instead.

dependencies {
    implementation "net.william278:annotaml:VERSION"
}

Maven & others

JitPack has a handy guide for how to use the dependency with other build platforms.

Usage

WIPBrowse the Javadocs for more methods and information.

License

Annotaml is licensed under Apache-2.0.

Annotaml

libraryjava
A Java library for generating YAML files from Java classes via annotations
License
Apache-2.0