You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 0 |`env JAVA_HOME="${JDK17}" ./gradlew -PjavaVersion=21 :graalvm-native-image-app:nativeCompile`| Build the application relying on the reachability metadata stored in `graalvm-native-image-app/src/main/resources/META-INF/native-image`. |
53
-
| 1 |`env JAVA_HOME="${JDK17}" ./gradlew clean && env JAVA_HOME=${JDK21_GRAALVM} ./gradlew -PjavaVersion=21 -Pagent :graalvm-native-image-app:run && env JAVA_HOME=${JDK21_GRAALVM} ./gradlew :graalvm-native-image-app:metadataCopy`| Collect the reachability metadata and update the files storing it. Do this before building the application only if building fails otherwise. |
54
-
| 2 |`./graalvm-native-image-app/build/native/nativeCompile/NativeImageApp`| Run the application that has been built. |
55
-
| 3 |`env JAVA_HOME="${JDK17}" ./gradlew -PjavaVersion=21 :graalvm-native-image-app:nativeRun`| Run the application using Gradle, build it if necessary relying on the stored reachability metadata. |
| 0 |`env JAVA_HOME="${JDK17}" ./gradlew -PincludeGraalvm -PjavaVersion=21 :graalvm-native-image-app:nativeCompile`| Build the application relying on the reachability metadata stored in `graalvm-native-image-app/src/main/resources/META-INF/native-image`. |
53
+
| 1 |`env JAVA_HOME="${JDK17}" ./gradlew clean && env JAVA_HOME=${JDK21_GRAALVM} ./gradlew -PincludeGraalvm -PjavaVersion=21 -Pagent :graalvm-native-image-app:run && env JAVA_HOME=${JDK21_GRAALVM} ./gradlew -PincludeGraalvm :graalvm-native-image-app:metadataCopy`| Collect the reachability metadata and update the files storing it. Do this before building the application only if building fails otherwise. |
54
+
| 2 |`./graalvm-native-image-app/build/native/nativeCompile/NativeImageApp`| Run the application that has been built. |
55
+
| 3 |`env JAVA_HOME="${JDK17}" ./gradlew -PincludeGraalvm -PjavaVersion=21 :graalvm-native-image-app:nativeRun`| Run the application using Gradle, build it if necessary relying on the stored reachability metadata. |
56
56
57
57
#### Specifying a custom connection string
58
58
@@ -62,12 +62,10 @@ you can specify the connection string used by the `:graalvm-native-image-app:run
62
62
Gradle tasks, as well as by the built native application by passing the CLI argument
63
63
`-Dorg.mongodb.test.uri="<your connection string>"` to `gradlew` or `NativeImageApp` respectively:
64
64
65
-
For gradle to include this project in the build you *must* include a project flag: `-PincludeGraalvm`
0 commit comments