Skip to content

Commit

Permalink
Fix local copy of FML & Earlydisplay being used in Moddev too.
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Jul 7, 2024
1 parent 11ccf35 commit bee778c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

plugins {
id 'net.neoforged.moddev'
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bee778c

Please sign in to comment.