58
58
import org .gradle .api .tasks .TaskAction ;
59
59
import org .gradle .api .tasks .util .PatternFilterable ;
60
60
import org .gradle .api .tasks .util .PatternSet ;
61
- import org .gradle .internal .Factory ;
61
+ import org .gradle .api . tasks . util . internal .PatternSetFactory ;
62
62
63
63
import java .io .File ;
64
64
import java .io .IOException ;
@@ -99,7 +99,7 @@ public abstract class RestCompatTestTransformTask extends DefaultTask {
99
99
private final Map <PatternFilterable , List <Pair <String , String >>> skippedTestByTestNameTransformations = new HashMap <>();
100
100
101
101
@ Inject
102
- protected Factory < PatternSet > getPatternSetFactory () {
102
+ protected PatternSetFactory getPatternSetFactory () {
103
103
throw new UnsupportedOperationException ();
104
104
}
105
105
@@ -109,7 +109,7 @@ public RestCompatTestTransformTask(FileSystemOperations fileSystemOperations, Ob
109
109
this .compatibleVersion = Version .fromString (VersionProperties .getVersions ().get ("elasticsearch" )).getMajor () - 1 ;
110
110
this .sourceDirectory = objectFactory .directoryProperty ();
111
111
this .outputDirectory = objectFactory .directoryProperty ();
112
- this .testPatternSet = getPatternSetFactory ().create ();
112
+ this .testPatternSet = getPatternSetFactory ().createPatternSet ();
113
113
this .testPatternSet .include ("/*" + "*/*.yml" ); // concat these strings to keep build from thinking this is invalid javadoc
114
114
// always inject compat headers
115
115
headers .put ("Content-Type" , "application/vnd.elasticsearch+json;compatible-with=" + compatibleVersion );
@@ -144,7 +144,7 @@ public void skipTest(String fullTestName, String reason) {
144
144
);
145
145
}
146
146
147
- PatternSet skippedPatternSet = getPatternSetFactory ().create ();
147
+ PatternSet skippedPatternSet = getPatternSetFactory ().createPatternSet ();
148
148
// create file patterns for all a1/a2/a3/b.yml possibilities.
149
149
for (int i = testParts .length - 1 ; i > 1 ; i --) {
150
150
final String lastPart = testParts [i ];
@@ -158,7 +158,7 @@ public void skipTest(String fullTestName, String reason) {
158
158
}
159
159
160
160
public void skipTestsByFilePattern (String filePattern , String reason ) {
161
- PatternSet skippedPatternSet = getPatternSetFactory ().create ();
161
+ PatternSet skippedPatternSet = getPatternSetFactory ().createPatternSet ();
162
162
skippedPatternSet .include (filePattern );
163
163
skippedTestByFilePatternTransformations .put (skippedPatternSet , reason );
164
164
}
0 commit comments