Skip to content
Advertisement

Specify the GRADLE_USER_HOME in Windows 7

How do I configure the GRADLE_USER_HOME option? My Windows username contains a space(C:UsersBaz Foo) and I think that the build fails because of this.

JavaScript

I have added an environment variable GRADLE_USER_HOME and set it to C:UsersBaz Foo.gradle and tried also with --gradle-user-home="C:UsersBaz Foo.gradle" but none of them work.

Advertisement

Answer

I have explicitly defined GRADLE_USER_HOME to point to a path without spaces(for example: E:gradle-repository). The gradle-repository folder contains the initialization script(init.gradle file, see Gradle initialization scripts).

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement