Skip to Content
WordweaverInstallation

Installation

Adding Dependency

WordWeaver depends on the Adventure  library.

In order to use WordWeaver you will need to download it using a BuildTool like Maven or Gradle. We also highly recommend relocating/shading the library into your own package.

WordWeaver depends on Kyori’s Adventure  library. Unless you are using a Platform that natively ships Adventure like Paper, Velocity or Fabric, you will need to add Adventure as a dependency as well.

The core wordweaver artifact ships with a .properties parser. JSON/JSONC support lives in the optional wordweaver-json (you provide GSON) or wordweaver-json-shaded (GSON bundled and relocated) modules. Add one to your classpath and it registers automatically. Pick only one of the two JSON modules.

Add Repository

build.gradle.kts
repositories { mavenCentral() }

Add Dependency

The core only ships a .properties parser. Add a JSON parser module if you want JSON/JSONC support.

build.gradle.kts
dependencies { implementation("io.github.milkdrinkers:wordweaver:VERSION") // Option A, bring your own GSON implementation("io.github.milkdrinkers:wordweaver-json:VERSION") implementation("com.google.code.gson:gson:x.x.x") // Option B, uses bundled GSON (do NOT combine with Option A) implementation("io.github.milkdrinkers:wordweaver-json-shaded:VERSION") }

Shade Dependency

When shading, merge service files so that every parser module stays registered.

build.gradle.kts
plugins { id("com.gradleup.shadow") version "8.3.6" } tasks { shadowJar { relocate("io.github.milkdrinkers.wordweaver", "yourpackage.wordweaver") mergeServiceFiles() } }

Well done! Next up have a look at usage.

Last updated on