Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@

public interface DependencyCollectorInjector
{

@Inject
public DependencyCollector dependencyCollector();
DependencyCollector getDependencyCollector();
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static Provider<File> resolveTool(final Project project, final Provider<S
//the project that converts the string to a dependency.
//This breaks the configuration cache as Projects can not be serialized.
final DependencyCollectorInjector inject = project.getObjects().newInstance(DependencyCollectorInjector.class);
final DependencyCollector collector = inject.dependencyCollector();
final DependencyCollector collector = inject.getDependencyCollector();
collector.add(tool.map(project.getDependencies()::create));
final Configuration config = ConfigurationUtils.temporaryUnhandledConfiguration(
project.getConfigurations(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void registerUnitTestDependencyMapping(Project project) {
.flatMap(TransformerUtils.combineAllLists(project, String.class, Function.identity()))
.map(dependencyCoordinates -> {
final DependencyCollectorInjector injector = project.getObjects().newInstance(DependencyCollectorInjector.class);
final DependencyCollector collector = injector.dependencyCollector();
final DependencyCollector collector = injector.getDependencyCollector();
dependencyCoordinates.forEach(collector::add);
return collector;
})
Expand Down
Loading