Skip to content

Commit

Permalink
Several fixes for broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed Oct 20, 2024
1 parent ec5c437 commit 91907c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.neoforged.gradle.common.util;

import net.neoforged.gradle.common.extensions.NeoGradleProblemReporter;
import org.jetbrains.annotations.NotNull;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ private TaskTreeAdapter createAccessTransformerAdapter(final String accessTransf
userDev.matching(filter -> filter.include(accessTransformerDirectory + "/**"));

return (definition, previousTasksOutput, runtimeWorkspace, gameArtifacts, mappingVersionData, dependentTaskConfigurationHandler) -> {
if (accessTransformerFiles.isEmpty()) {
// No access transformers found, so we don't need to do anything
return null;
}

final TaskProvider<? extends SourceAccessTransformer> accessTransformerTask = CommonRuntimeTaskUtils.createSourceAccessTransformer(definition, "Forges", accessTransformerFiles, definition.getListLibrariesTaskProvider(), definition.getAllDependencies());
accessTransformerTask.configure(task -> task.getInputFile().set(previousTasksOutput.flatMap(WithOutput::getOutput)));
accessTransformerTask.configure(task -> task.dependsOn(previousTasksOutput));
Expand Down

0 comments on commit 91907c6

Please sign in to comment.