diff --git a/test/build.gradle b/test/build.gradle index c5b25a8f0..9b0219499 100644 --- a/test/build.gradle +++ b/test/build.gradle @@ -1,4 +1,3 @@ - plugins { id 'net.neoforged.moddev' } @@ -104,6 +103,14 @@ abstract class OperatingSystemDisambiguation implements AttributeDisambiguationR var ATTRIBUTE_DISTRIBUTION = Attribute.of("net.neoforged.distribution", String.class); var ATTRIBUTE_OPERATING_SYSTEM = Attribute.of("net.neoforged.operatingsystem", String.class); +// Since the neoforge-dependencies use strict resolution, we're kinda lost and have to force. +configurations.configureEach { + resolutionStrategy.dependencySubstitution { + substitute module("net.neoforged.fancymodloader:loader") using project(":loader") + substitute module("net.neoforged.fancymodloader:earlydisplay") using project(":earlydisplay") + } +} + dependencies { attributesSchema(attributesSchema -> { attributesSchema.attribute(ATTRIBUTE_DISTRIBUTION).getDisambiguationRules().add(DistributionDisambiguation.class);