Skip to content

Commit

Permalink
Post-rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Nov 29, 2024
1 parent b13edf5 commit d18176f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ public void apply(Project project) {

// This defines the module path for runs
// NOTE: When running in vanilla mode, this provider is undefined and will not result in an actual dependency
var modulePathDependency = extension.getVersion().map(version -> {
return dependencyFactory.create("net.neoforged:neoforge:" + version)
var modulePathDependency = extension.getNeoForgeArtifact().map(artifactId -> {
return dependencyFactory.create(artifactId)
.capabilities(caps -> {
caps.requireCapability("net.neoforged:neoforge-moddev-module-path");
})
Expand Down Expand Up @@ -338,8 +338,8 @@ public void apply(Project project) {
config.setDescription("Additional JUnit helpers provided by NeoForge");
config.setCanBeResolved(false);
config.setCanBeConsumed(false);
config.getDependencies().addLater(extension.getVersion().map(version -> {
return dependencyFactory.create("net.neoforged:neoforge:" + version)
config.getDependencies().addLater(extension.getNeoForgeArtifact().map(artifact -> {
return dependencyFactory.create(artifact)
.capabilities(caps -> {
caps.requireCapability("net.neoforged:neoforge-moddev-test-fixtures");
});
Expand Down

0 comments on commit d18176f

Please sign in to comment.