Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore NativeImagePlugin.NATIVE_TEST_EXTENSION #256

Merged
merged 1 commit into from
Jun 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public class NativeImagePlugin implements Plugin<Project> {
public static final String NATIVE_TEST_COMPILE_TASK_NAME = "nativeTestCompile";
public static final String NATIVE_TEST_TASK_NAME = "nativeTest";
public static final String NATIVE_MAIN_EXTENSION = "main";
public static final String NATIVE_TEST_EXTENSION = "test";

public static final String DEPRECATED_NATIVE_BUILD_EXTENSION = "nativeBuild";
public static final String DEPRECATED_NATIVE_TEST_EXTENSION = "nativeTest";
Expand Down Expand Up @@ -248,7 +249,7 @@ private void configureJavaProject(Project project, Provider<NativeImageService>
t.doFirst("Warn about deprecation", task -> task.getLogger().warn("Task " + DEPRECATED_NATIVE_BUILD_TASK + " is deprecated. Use " + NATIVE_COMPILE_TASK_NAME + " instead."));
});

graalExtension.registerTestBinary("test", config -> {
graalExtension.registerTestBinary(NATIVE_TEST_EXTENSION, config -> {
config.forTestTask(tasks.named("test", Test.class));
config.usingSourceSet(GradleUtils.findSourceSet(project, SourceSet.TEST_SOURCE_SET_NAME));
});
Expand Down