File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
build-tools/src/main/java/org/elasticsearch/gradle/test Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,8 @@ public void apply(Project project) {
5757 task .into ("META-INF" , copy -> copy .from (testBuildInfoTask ));
5858 });
5959
60- project .getTasks ().withType (Test .class ).configureEach (test -> {
61- if (List .of ("test" ).contains (test .getName ())) {
62- test .systemProperty ("es.entitlement.enableForTests" , "true" );
63- }
60+ project .getTasks ().withType (Test .class ).matching (test -> List .of ("test" ).contains (test .getName ())).configureEach (test -> {
61+ test .systemProperty ("es.entitlement.enableForTests" , "true" );
6462 });
6563 }
6664}
Original file line number Diff line number Diff line change @@ -50,10 +50,8 @@ configure(childProjects.values()) {
5050 // Omit oddball libraries that aren't in server.
5151 def nonServerLibs = Set . of(' plugin-scanner' )
5252 if (false == nonServerLibs. contains(project. name)) {
53- project. getTasks(). withType(Test . class). configureEach(test -> {
54- if (List . of(' test' ). contains(test. getName())) {
55- test. systemProperty(' es.entitlement.enableForTests' , ' true' )
56- }
53+ project. getTasks(). withType(Test . class). matching(test -> List . of(' test' ). contains(test. getName())). configureEach(test -> {
54+ test. systemProperty(' es.entitlement.enableForTests' , ' true' )
5755 })
5856 }
5957
You can’t perform that action at this time.
0 commit comments