From 918a0029fc267c7eece1489fe8b640d139badaad Mon Sep 17 00:00:00 2001 From: David Francoeur Date: Thu, 5 Oct 2023 15:28:38 -0400 Subject: [PATCH] Fix a few issues realted to nativeImageAgentOutputDir docs --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 092d459..c1271cc 100644 --- a/readme.md +++ b/readme.md @@ -267,8 +267,8 @@ First, add the reflection configuration to the native image options lazy val myNativeProject = project .settings( -+ nativeImageOptions += s"-H:ReflectionConfigurationFiles=${target.value / "native-image-configs" / "reflect-config.json"}", -+ nativeImageOptions += s"-H:ConfigurationFileDirectories=${target.value / "native-image-configs" }", ++ nativeImageOptions += s"-H:ReflectionConfigurationFiles=${nativeImageAgentOutputDir.value / "reflect-config.json"}", ++ nativeImageOptions += s"-H:ConfigurationFileDirectories=${nativeImageAgentOutputDir.value }", + nativeImageOptions +="-H:+JNI" ) .enablePlugins(NativeImagePlugin) @@ -295,7 +295,7 @@ $ sbt **Description**: directory where `native-image-agent` should put generated configurations. -**Default**: `baseDirectory.value / "native-image-configs"` +**Default**: `target.value / "native-image-configs"` **Example usage**: `nativeImageAgentOutputDir := baseDirectory.value / "native-image-agent" / "out"`