Skip to content

Commit f476f12

Browse files
committed
Fix deprecation warnings in RuntimeHintsAgentPlugin
Closes gh-34389 Signed-off-by: Daeho Kwon <[email protected]>
1 parent ae72411 commit f476f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/java/org/springframework/build/hint/RuntimeHintsAgentPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void apply(Project project) {
6464
test.setClasspath(jvmTestSuite.getSources().getRuntimeClasspath());
6565
test.getJvmArgumentProviders().add(createRuntimeHintsAgentArgumentProvider(project, agentExtension));
6666
});
67-
project.getTasks().getByName("check", task -> task.dependsOn(agentTest));
67+
project.getTasks().named("check", task -> task.dependsOn(agentTest));
6868
project.getDependencies().add(CONFIGURATION_NAME, project.project(":spring-core-test"));
6969
});
7070
}

0 commit comments

Comments
 (0)