We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8037490 commit 4784064Copy full SHA for 4784064
1 file changed
docs/TESTING.md
@@ -338,6 +338,17 @@ capabilities: [JAVA_COMPILER]
338
org.gradle.java.home=/path/to/your/jdk17
339
```
340
341
+**Alternative fix (command line):** Pass the JDK path directly to Gradle without modifying
342
+`gradle.properties`. Use the `-Dorg.gradle.java.home` flag:
343
+
344
+```bash
345
+# Example using a local JDK 17 installation
346
+./gradlew assembleDebug -Dorg.gradle.java.home=/home/user/.jdks/jbr-17.0.9
347
348
+# Run tests with a specific JDK
349
+./gradlew testDebugUnitTest -Dorg.gradle.java.home=/opt/jdk-17.0.14
350
351
352
Common locations:
353
354
| Environment | Path |
0 commit comments