File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
build-tools/src/main/java/org/elasticsearch/gradle/test Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,9 @@ public void apply(Project project) {
57
57
task .into ("META-INF" , copy -> copy .from (testBuildInfoTask ));
58
58
});
59
59
60
- if (project .getRootProject ().getName ().equals ("elasticsearch" )) {
61
- project .getTasks ()
62
- .withType (Test .class )
63
- .matching (test -> List .of ("test" , "internalClusterTest" ).contains (test .getName ()))
64
- .configureEach (test -> {
65
- test .systemProperty ("es.entitlement.enableForTests" , "true" );
66
- });
67
- }
60
+ project .getTasks ()
61
+ .withType (Test .class )
62
+ .matching (test -> List .of ("test" , "internalClusterTest" ).contains (test .getName ()))
63
+ .configureEach (test -> test .getSystemProperties ().putIfAbsent ("es.entitlement.enableForTests" , "true" ));
68
64
}
69
65
}
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ subprojects {
20
20
targetCompatibility = 21
21
21
}
22
22
23
+ test {
24
+ // testing with entitlements doesn't work for example plugins ES-12453
25
+ systemProperty ' es.entitlement.enableForTests' , ' false'
26
+ }
27
+
23
28
repositories {
24
29
// Only necessary when building plugins against SNAPSHOT versions of Elasticsearch
25
30
if (gradle. includedBuilds. isEmpty()) {
You can’t perform that action at this time.
0 commit comments