• Stars
    star
    310
  • Rank 134,926 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple configuration library for Java applications providing a node structure, a variety of formats, and tools for transformation

Configurate

GitHub Workflow Status (branch) MIT License Maven Central Sonatype Nexus (Snapshots)

Configurate is a simple configuration library for Java applications that provides a node-based representation of data, able to handle a wide variety of configuration formats.

Want to talk to us about Configurate? Join us in the #dev channel on our Discord or start a thread on our (new!) Discussions page.

The current supported formats are:

Project Structure

The project is split into different modules.

Configurate core

configurate-core is the base of the library, containing the main APIs used to manipulate configurations. It is generic, and does not depend on any specific format of configuration.

Configurate loaders

Each distinct configuration format is implemented as a "configuration loader", in a separate module.

A number of loader implementations are provided as standard in this project, however it is possible to implement a custom loader for a new format separately.

The current supported loaders provided by the project are:

  • configurate-gson - Implementation for the JSON format, using the Gson library for parsing and generation
  • configurate-hocon - Implementation for the HOCON format, using the lightbend config library for parsing and generation
  • configurate-jackson - Implementation for the JSON format, using the Jackson library for parsing and generation
  • configurate-xml - Implementation for the XML format, using the JAXP library for parsing and generation
  • configurate-yaml - Implementation for the YAML format, using the SnakeYAML library for parsing and generation

extras

Some features that don't need tight integration with Configurate itself are provided as separate modules. These are:

  • configurate-extra-dfu[2-4] - Integration between Mojang's DataFixerUpper and Configurate's systems.
  • configurate-extra-kotlin - Extensions to allow Configurate types to use Kotlin features, and support for Kotlin data classes in the object mapper.
  • configurate-extra-guice - Allows using a Guice Injector to create new object instances in the object mapper.

Usage

  • To use Configurate, your project must be configured to use Java 8 or higher.
  • Releases are on Maven Central and snapshot artifacts are hosted on Sonatype OSS. Builds are also included on SpongePowered's Maven Repository , available at https://repo.spongepowered.org/maven/.

If your project uses Maven or Gradle, just add the following to your build scripts.

Gradle

repositories {
    mavenCentral()
}

dependencies {
    // Modify this line to target the loader you wish to use.
    compile 'org.spongepowered:configurate-hocon:4.0.0'
}

Maven

<dependencies>
    <dependency>
        <groupId>org.spongepowered</groupId>
        <!-- Modify this line to target the loader you wish to use. -->
        <artifactId>configurate-hocon</artifactId>
        <version>4.0.0</version>
    </dependency>
</dependencies>

More detailed usage instructions can be found in the Configurate wiki.

Contributing

Clone

The following steps will ensure your project is cloned properly.

  1. git clone https://github.com/SpongePowered/Configurate.git
  2. cd Configurate

Building

Note: If you do not have Gradle 7.0+ installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.

In order to build Configurate you simply need to run the gradle build command. You can find the compiled JAR files in ./build/libs (found in each subproject) labeled similarly to '-x.x.x-SNAPSHOT.jar'.

While the entire project can run on Java 8, the project requires Java 11 to build, and for multi-release JAR contents and some tests requires at least Java 16. Gradle will automatically download necessary JDK versions -- see their documentation for details on this feature, and how to point it at existing local installations.

Pull Requests

We love PRs! However, when contributing, here are some things to keep in mind:

  • Take a look at open issues first before you get too far in -- someone might already be working on what you were planning on doing
  • In general, we follow the Sponge style guidelines for code style -- see the Contributing Guidelines for details.
  • Please, please, please test PRs. It makes the process a lot easier for everybody :)

More Repositories

1

Mixin

Mixin is a trait/mixin and bytecode weaving framework for Java using ASM
Java
1,229
star
2

SpongeForge

A Forge mod that implements SpongeAPI
Java
1,150
star
3

SpongeAPI

A Minecraft plugin API
Java
1,127
star
4

Sponge

The SpongeAPI implementation targeting vanilla Minecraft and 3rd party platforms.
Java
360
star
5

SpongeVanilla

The SpongeAPI implementation for Vanilla Minecraft.
Java
255
star
6

SpongeDocs

Documentation for Sponge and its Implementations
Java
103
star
7

noise

Noise generation library for Java, based on the libnoise C++ library. It is used to generate coherent noise, a type of smoothly-changing noise. It can also generate Perlin noise, ridged multifractal noise, and other types of coherent noise.
Java
101
star
8

MixinGradle

Gradle plugin that adds the Mixin technology capability to your project.
Groovy
90
star
9

VanillaGradle

A toolchain for Minecraft: Java Edition that builds a workspace to interact with the game using the official mappings provided to the public by Mojang Studios.
Java
90
star
10

Ore

Repository software for Sponge plugins and Forge mods
Scala
75
star
11

math

Immutable math library for Java that offers easy conversion between math types, fast trigonometric functions, vectors, matrices, complex numbers, quaternions, and operation chaining, with a focus on games and computer graphics.
Java
54
star
12

nbt

Named Binary Tag (NBT) library for Java based on Graham Edgecombe's JNBT library. NBT is a tag based binary format designed to carry large amounts of binary data with smaller amounts of additional data.
Java
50
star
13

McTester

An integration testing framework for Minecraft
Java
39
star
14

Schematic-Specification

Schematic Format Specification for Minecraft
36
star
15

Cookbook

SpongeAPI munchy crunchy delicious recipes
Java
35
star
16

SpongeGradle

Handy gradle utilities for the various gradle projects of SpongePowered
Java
21
star
17

SpongeHome

A brand new homepage for SpongePowered
SCSS
15
star
18

SpongeAuth

An authentication portal for shared user accounts between Sponge services.
Python
10
star
19

sponge-docs-theme

Theme for the sponge documentation
JavaScript
8
star
20

LaunchWrapperTestSuite

A LaunchWrapper JUnit Test Suite
Java
7
star
21

OrePlugin

Package manager for the Sponge platform using the Ore web service.
Java
7
star
22

Spongie

The one and only hard working bot for Sponge!
Java
6
star
23

plugin-meta

Plugin Metadata Specification
Java
6
star
24

SystemOfADownload

Downloads webpage builder, backend builds the database and pages
Java
5
star
25

event-impl-gen

Used for generating SpongeEventFactory in SpongeAPI
Java
5
star
26

DownloadIndexer

The download indexer and API for the Sponge project
Go
4
star
27

LegacySpongeAuth

An authentication portal for shared user accounts between Sponge services.
Scala
4
star
28

sponge-plugin-template

A template for making a Sponge plugin for SpongeAPI 8.0.0
Java
3
star
29

sponge-plugin-archetype

Java
3
star
30

SpongeWebGo

Go
2
star
31

Metronome

Hax?
Java
2
star
32

APIJavadocs

HTML
2
star
33

Royale

Anaheim, CA - Minecon 2016 Exhibition showcase. Battle royale.
Java
2
star
34

collections

Uncommon data structure collections for Java 8
Java
2
star
35

gitpatcher

Groovy
2
star
36

repoindexer

Java
2
star
37

observer

Java
1
star
38

SpongeDownloads

The downloads page for the Sponge project
Vue
1
star
39

Lorenz

Java
1
star
40

plugin-spi

Plugin Loading Specification
Java
1
star