diff --git a/plugins/package-managers/gradle-inspector/src/main/kotlin/GradleInspector.kt b/plugins/package-managers/gradle-inspector/src/main/kotlin/GradleInspector.kt index e699cbe0de89e..904e3a7e5e9a0 100644 --- a/plugins/package-managers/gradle-inspector/src/main/kotlin/GradleInspector.kt +++ b/plugins/package-managers/gradle-inspector/src/main/kotlin/GradleInspector.kt @@ -177,7 +177,7 @@ class GradleInspector( .setJvmArguments(jvmArgs) .setStandardOutput(stdout) .setStandardError(stderr) - .withArguments("--init-script", initScriptFile.path) + .withArguments("-Duser.home=${Os.userHomeDirectory}", "--init-script", initScriptFile.path) .get() if (stdout.size() > 0) {