Skip to content

Commit 25c9321

Browse files
committed
Fix transport-netty4 internalClusterTest
1 parent 69c6a1b commit 25c9321

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/InternalClusterTestPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void apply(Project project) {
3232
testing.getSuites().register(SOURCE_SET_NAME, JvmTestSuite.class, suite -> {
3333
suite.useJUnit();
3434
suite.getDependencies().getImplementation().add(suite.getDependencies().project());
35-
suite.getTargets().all(target -> { target.getTestTask().configure(test -> { test.jvmArgs("-XX:+UseG1GC"); }); });
35+
suite.getTargets().configureEach(target -> { target.getTestTask().configure(test -> { test.jvmArgs("-XX:+UseG1GC"); }); });
3636
});
3737

3838
project.getPluginManager().withPlugin("java", plugin -> {

modules/transport-netty4/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ esplugin {
3030

3131
// exclude transitively pulled in version via the esplugin plugin to always build from fresh sources and make jar-hell checks pass
3232
configurations {
33-
[testCompileClasspath, testRuntimeClasspath, internalClusterTestCompileClasspath, internalClusterTestRuntimeClasspath].each {
33+
[testCompileClasspath, testRuntimeClasspath].each {
3434
it.exclude group: 'org.elasticsearch.plugin', module: 'transport-netty4'
3535
}
3636
}
@@ -237,3 +237,4 @@ tasks.named("thirdPartyAudit").configure {
237237
tasks.named('forbiddenApisMain').configure {
238238
signaturesFiles += files('forbidden/netty-signatures.txt')
239239
}
240+

0 commit comments

Comments
 (0)