Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.
/ warp Public archive

An addon for Fabric's Gradle plugin, Loom, that uninlines constants in generated sources

License

Notifications You must be signed in to change notification settings

WeaveMC/warp

Repository files navigation

Warp

WeaveMC only existed for interim management of the project until Fabric was in a suitable state to integrate it directly into the toolchain. FabricMC/fabric-loom now integrates Unpick directly. This project now exists only for historical reasons.

Warp is an addon for Fabric's Gradle plugin, Loom. During the source generation stage of a Fabric project setup, Warp uninlines inlined constants in the generated sources.

Uninlining is achieved using Unpick, and a set of Unpick definitions. Warp is intended for use with the Weft definitions, but it is not dependent on them.

Usage

Maven Repository

Warp is hosted on the same maven as Loom, so no repositories need to be added, your buildscript will already contain the correct repository.

Plugin ID

Warp's plugin id is io.github.weavemc.warp, check the Warp maven for the latest version.

unpickDefinitions configuration

The Unpick definitions Warp should use are specified by the unpickDefinitions configuration. Warp expects this configuration to specify a single dependency.

The suggested set of Unpick definitions is Weft.
The maven group for Weft is io.github.weavemc and its artifact id is weft, check the Weft maven for the latest version. Note that the number before the + is the target Minecraft version.

To use other sets of Unpick definitions, see their documentation.

Running Warp

Warp automatically runs when Loom's genSources task does. Once the Gradle run is complete, it may be necessary to close and reopen your project to refresh the sources.

Discord

If you need support with any WeaveMC project, you can find it here.

About

An addon for Fabric's Gradle plugin, Loom, that uninlines constants in generated sources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages