MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
509 stars 437 forks source link

Fix configuration resolution method to preserve strategies and exclusions #816

Closed amadornes closed 3 years ago

amadornes commented 3 years ago

Manually created detached configurations like the one currently being used don't inherit the resolution strategy and other customizations from the original configuration. This does, and otherwise appears to behave exactly the same in testing.

This change lets projects make use of Gradle's custom dependency resolution rules such as substitutions or version overrides, as well as exclusions, allowing for much more streamlined multi-project workspaces and build environments.

As requested, this PR has been tested against the latest version of the MDK, and both upstream Forge and JEI.