The above code sets the fabric.mod.json metadata to have a priority of 5 which is higher than quilt.mod.json's default priority of 1.
Default Priorities
By default, the priorities will be:
quilt.mod.json: priority 1
fabric.mod.json: priority 0
All other metadata providers have a priority of -1 by default, but can be changed via the metadataPriorities configuration block.
Testing
I have tested this build in my project, using both a quilt.mod.json file and a fabric.mod.json file and found that quilt-loom did indeed take metadata from the quilt.mod.json file when both were supplied.
Related Issues
This fixes #8.
Questions
Currently the priority logic is hard-coded. Do we want to add configuration for this?
This PR
This pull request adds logic for handling remapping of jars with multiple kinds of metadata.
Currently this logic is hard-coded, placingquilt.mod.json
with the highest priority andfabric.mod.json
with the second-highest priority.Configuration can be done via the
metadataPriorities
block in theLoomGradleExtensionApi
, by using thepriority(<filename>, <priority>)
function:The above code sets the
fabric.mod.json
metadata to have a priority of5
which is higher thanquilt.mod.json
's default priority of1
.Default Priorities
By default, the priorities will be:
quilt.mod.json
: priority1
fabric.mod.json
: priority0
-1
by default, but can be changed via themetadataPriorities
configuration block.Testing
I have tested this build in my project, using both a
quilt.mod.json
file and afabric.mod.json
file and found that quilt-loom did indeed take metadata from thequilt.mod.json
file when both were supplied.Related Issues
This fixes #8.
Questions
Currently the priority logic is hard-coded. Do we want to add configuration for this?