Skip to content

Commit 4e1a3b6

Browse files
committed
Set inputs instead of dependencies
1 parent b5a1672 commit 4e1a3b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,15 +299,15 @@ private static void configureEntitlements(Project project) {
299299
// Agent
300300
if (agentFiles.isEmpty() == false) {
301301
var systemProperties = test.getExtensions().getByType(SystemPropertyCommandLineArgumentProvider.class);
302-
test.dependsOn(agentFiles);
302+
test.getInputs().files(agentFiles);
303303
systemProperties.systemProperty("es.entitlement.agentJar", agentFiles.getAsPath());
304304
systemProperties.systemProperty("jdk.attach.allowAttachSelf", true);
305305
}
306306

307307
// Bridge
308308
if (bridgeFiles.isEmpty() == false) {
309309
String modulesContainingEntitlementInstrumentation = "java.logging,java.net.http,java.naming,jdk.net";
310-
test.dependsOn(bridgeFiles);
310+
test.getInputs().files(bridgeFiles);
311311
// Tests may not be modular, but the JDK still is
312312
test.jvmArgs(
313313
"--add-exports=java.base/org.elasticsearch.entitlement.bridge=ALL-UNNAMED,"

0 commit comments

Comments
 (0)