Package org.graalvm.buildtools.gradle
Class NativeImagePlugin
- java.lang.Object
-
- org.graalvm.buildtools.gradle.NativeImagePlugin
-
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
public class NativeImagePlugin extends java.lang.Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Gradle plugin for GraalVM Native Image.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEPRECATED_NATIVE_BUILD_EXTENSION
static java.lang.String
DEPRECATED_NATIVE_BUILD_TASK
static java.lang.String
DEPRECATED_NATIVE_TEST_BUILD_TASK
static java.lang.String
DEPRECATED_NATIVE_TEST_EXTENSION
static java.lang.String
GENERATE_RESOURCES_CONFIG_FILE_TASK_NAME
static java.lang.String
GENERATE_TEST_RESOURCES_CONFIG_FILE_TASK_NAME
static java.lang.String
NATIVE_COMPILE_TASK_NAME
static java.lang.String
NATIVE_MAIN_EXTENSION
static java.lang.String
NATIVE_TEST_COMPILE_TASK_NAME
static java.lang.String
NATIVE_TEST_EXTENSION
static java.lang.String
NATIVE_TEST_TASK_NAME
static java.lang.String
PROCESS_AGENT_RESOURCES_TASK_NAME
static java.lang.String
PROCESS_AGENT_TEST_RESOURCES_TASK_NAME
-
Constructor Summary
Constructors Constructor Description NativeImagePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.gradle.api.Project project)
org.gradle.api.file.ArchiveOperations
getArchiveOperations()
void
registerTestBinary(org.gradle.api.Project project, DefaultGraalVmExtension graalExtension, DefaultTestBinaryConfig config)
-
-
-
Field Detail
-
NATIVE_COMPILE_TASK_NAME
public static final java.lang.String NATIVE_COMPILE_TASK_NAME
- See Also:
- Constant Field Values
-
NATIVE_TEST_COMPILE_TASK_NAME
public static final java.lang.String NATIVE_TEST_COMPILE_TASK_NAME
- See Also:
- Constant Field Values
-
NATIVE_TEST_TASK_NAME
public static final java.lang.String NATIVE_TEST_TASK_NAME
- See Also:
- Constant Field Values
-
NATIVE_TEST_EXTENSION
public static final java.lang.String NATIVE_TEST_EXTENSION
- See Also:
- Constant Field Values
-
NATIVE_MAIN_EXTENSION
public static final java.lang.String NATIVE_MAIN_EXTENSION
- See Also:
- Constant Field Values
-
PROCESS_AGENT_RESOURCES_TASK_NAME
public static final java.lang.String PROCESS_AGENT_RESOURCES_TASK_NAME
- See Also:
- Constant Field Values
-
PROCESS_AGENT_TEST_RESOURCES_TASK_NAME
public static final java.lang.String PROCESS_AGENT_TEST_RESOURCES_TASK_NAME
- See Also:
- Constant Field Values
-
GENERATE_RESOURCES_CONFIG_FILE_TASK_NAME
public static final java.lang.String GENERATE_RESOURCES_CONFIG_FILE_TASK_NAME
- See Also:
- Constant Field Values
-
GENERATE_TEST_RESOURCES_CONFIG_FILE_TASK_NAME
public static final java.lang.String GENERATE_TEST_RESOURCES_CONFIG_FILE_TASK_NAME
- See Also:
- Constant Field Values
-
DEPRECATED_NATIVE_BUILD_EXTENSION
public static final java.lang.String DEPRECATED_NATIVE_BUILD_EXTENSION
- See Also:
- Constant Field Values
-
DEPRECATED_NATIVE_TEST_EXTENSION
public static final java.lang.String DEPRECATED_NATIVE_TEST_EXTENSION
- See Also:
- Constant Field Values
-
DEPRECATED_NATIVE_BUILD_TASK
public static final java.lang.String DEPRECATED_NATIVE_BUILD_TASK
- See Also:
- Constant Field Values
-
DEPRECATED_NATIVE_TEST_BUILD_TASK
public static final java.lang.String DEPRECATED_NATIVE_TEST_BUILD_TASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArchiveOperations
@Inject public org.gradle.api.file.ArchiveOperations getArchiveOperations()
-
apply
public void apply(org.gradle.api.Project project)
- Specified by:
apply
in interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-
registerTestBinary
public void registerTestBinary(org.gradle.api.Project project, DefaultGraalVmExtension graalExtension, DefaultTestBinaryConfig config)
-
-