tweed-api

Yet another fabric config attempt.

APACHE-2.0 License

Stars
8
Committers
3

Tweed 4

Yet another config API.

Usage

To get the dependencies working, you may use the following setup:

// build.gradle

repositories {
	maven { url 'https://maven.siphalor.de/' }
}

dependencies {
	include(modApi(platform("de.siphalor.tweed4:tweed4-bom-$minecraft_major_version:$tweed_version")))
	// Pick any modules you want to use, e.g.:
	include(modApi("de.siphalor.tweed4:tweed4-base-$minecraft_major_version"))
	include(modApi("de.siphalor.tweed4:tweed4-annotated-$minecraft_major_version"))
	include(modApi("de.siphalor.tweed4:tweed4-data-$minecraft_major_version"))
	include(modApi("de.siphalor.tweed4:tweed4-data-hjson-$minecraft_major_version"))
}

// Workaround for https://github.com/gradle/gradle/issues/10195
configurations.include.transitive = true
configurations.include.dependencies.each {
	if (!it.name.contains("bom")) {
		it.transitive = false
	}
}

Use can find the latest version in the badge at the top of this README.

# gradle.properties

tweed_version=<latest version from badge>
minecraft_major_version=1.16

For a quick code example see here.

License

This mod is available under the Apache 2.0 License. Terms and conditions apply.