|
31 | 31 | import org.gradle.api.tasks.JavaExec; |
32 | 32 | import org.gradle.api.tasks.Nested; |
33 | 33 | import org.gradle.api.tasks.Optional; |
34 | | -import org.gradle.api.tasks.OutputFile; |
35 | 34 | import org.gradle.api.tasks.TaskAction; |
36 | | -import org.gradle.internal.logging.StandardOutputCapture; |
37 | 35 | import org.gradle.jvm.toolchain.JavaLanguageVersion; |
38 | 36 | import org.gradle.jvm.toolchain.JavaLauncher; |
39 | 37 | import org.gradle.jvm.toolchain.JavaToolchainService; |
|
54 | 52 | import java.util.Locale; |
55 | 53 | import java.util.Map; |
56 | 54 | import java.util.concurrent.Callable; |
57 | | -import java.util.stream.Collectors; |
58 | 55 |
|
59 | 56 | /// This tool execution task is a template on top of [JavaExec] to make executing [tools][Tool] much easier and more |
60 | 57 | /// consistent between plugins. |
@@ -111,7 +108,7 @@ public abstract class ToolExecBase<P extends EnhancedProblems> extends DefaultTa |
111 | 108 |
|
112 | 109 | protected abstract @Inject ExecOperations getExecOperations(); |
113 | 110 |
|
114 | | - protected abstract @Inject DependencyFactory getDependencies(); |
| 111 | + protected abstract @Inject DependencyFactory getDependencyFactory(); |
115 | 112 |
|
116 | 113 | protected abstract @Inject JavaToolchainService getJavaToolchains(); |
117 | 114 |
|
@@ -148,7 +145,7 @@ protected ToolExecBase(Tool tool) { |
148 | 145 | } |
149 | 146 |
|
150 | 147 | public final void using(CharSequence dependency) { |
151 | | - this.using(getDependencies().create(dependency)); |
| 148 | + this.using(getDependencyFactory().create(dependency)); |
152 | 149 | } |
153 | 150 |
|
154 | 151 | public final void using(Provider<? extends Dependency> dependency) { |
|
0 commit comments