File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/net/neoforged/moddevgradle/internal Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,11 @@ private List<Configuration> configureArtifactManifestConfigurations(Project proj
580580 .capabilities (caps -> {
581581 caps .requireCapability ("net.neoforged:neoforge-dependencies" );
582582 })));
583+ // This dependency is used when the NeoForm version is overridden or when we run in Vanilla-only mode
584+ spec .getDependencies ().addLater (neoFormDependency .map (dependency -> dependency .copy ()
585+ .capabilities (caps -> {
586+ caps .requireCapability ("net.neoforged:neoform-dependencies" );
587+ })));
583588 spec .attributes (attributes -> {
584589 attributes .attribute (Usage .USAGE_ATTRIBUTE , project .getObjects ().named (Usage .class , Usage .JAVA_RUNTIME ));
585590 attributes .attribute (ATTRIBUTE_DISTRIBUTION , "client" );
You can’t perform that action at this time.
0 commit comments