@@ -56,7 +56,7 @@ public abstract class CopyRestTestsTask extends DefaultTask {
56
56
private FileCollection coreConfig ;
57
57
private FileCollection xpackConfig ;
58
58
private FileCollection additionalConfig ;
59
- private SerializableFunction <FileCollection , FileTree > coreConfigToFileTree = FileCollection ::getAsFileTree ;
59
+ private SerializableCopyRestTestsTaskFunction <FileCollection , FileTree > coreConfigToFileTree = FileCollection ::getAsFileTree ;
60
60
private SerializableFunction <FileCollection , FileTree > xpackConfigToFileTree = FileCollection ::getAsFileTree ;
61
61
private SerializableFunction <FileCollection , FileTree > additionalConfigToFileTree = FileCollection ::getAsFileTree ;
62
62
@@ -65,9 +65,6 @@ public abstract class CopyRestTestsTask extends DefaultTask {
65
65
private final ProjectLayout projectLayout ;
66
66
private final FileSystemOperations fileSystemOperations ;
67
67
68
- @ Inject
69
- public abstract FileOperations getFileOperations ();
70
-
71
68
@ Inject
72
69
public CopyRestTestsTask (
73
70
ProjectLayout projectLayout ,
@@ -85,16 +82,7 @@ public CopyRestTestsTask(
85
82
}
86
83
87
84
@ Inject
88
- protected abstract ProjectLayout getProjectLayout ();
89
-
90
- @ Inject
91
- protected abstract FileSystemOperations getFileSystemOperations ();
92
-
93
- @ Inject
94
- protected abstract ObjectFactory getObjectFactory ();
95
-
96
- @ Inject
97
- protected abstract PatternSetFactory getPatternSetFactory ();
85
+ public abstract FileOperations getFileOperations ();
98
86
99
87
@ Input
100
88
public ListProperty <String > getIncludeCore () {
0 commit comments