diff --git a/buildSrc/src/main/java/org/springframework/build/hint/RuntimeHintsAgentPlugin.java b/buildSrc/src/main/java/org/springframework/build/hint/RuntimeHintsAgentPlugin.java index f8f4a513f5e..8f481c8186e 100644 --- a/buildSrc/src/main/java/org/springframework/build/hint/RuntimeHintsAgentPlugin.java +++ b/buildSrc/src/main/java/org/springframework/build/hint/RuntimeHintsAgentPlugin.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,7 @@ import org.gradle.api.tasks.testing.Test; * {@link Plugin} that configures the {@code RuntimeHints} Java agent to test tasks. * * @author Brian Clozel + * @author Sebastien Deleuze */ public class RuntimeHintsAgentPlugin implements Plugin { @@ -45,6 +46,7 @@ public class RuntimeHintsAgentPlugin implements Plugin { }); test.include("**/*Tests.class", "**/*Test.class"); test.systemProperty("java.awt.headless", "true"); + test.systemProperty("org.graalvm.nativeimage.imagecode", "runtime"); }); project.afterEvaluate(p -> { Jar jar = project.getRootProject().project("spring-core-test").getTasks().withType(Jar.class).named("jar").get();