Skip to content

Commit

Permalink
Fix natives not getting added to the artifact manifest in vanilla mode (
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored Sep 2, 2024
1 parent 5bf2286 commit c5b1190
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,11 @@ private List<Configuration> configureArtifactManifestConfigurations(Project proj
.capabilities(caps -> {
caps.requireCapability("net.neoforged:neoforge-dependencies");
})));
// This dependency is used when the NeoForm version is overridden or when we run in Vanilla-only mode
spec.getDependencies().addLater(neoFormDependency.map(dependency -> dependency.copy()
.capabilities(caps -> {
caps.requireCapability("net.neoforged:neoform-dependencies");
})));
spec.attributes(attributes -> {
attributes.attribute(Usage.USAGE_ATTRIBUTE, project.getObjects().named(Usage.class, Usage.JAVA_RUNTIME));
attributes.attribute(ATTRIBUTE_DISTRIBUTION, "client");
Expand Down

0 comments on commit c5b1190

Please sign in to comment.