Specify gradle home in the %userpfofile%/.gradle/gradle.properties

(Dmodoomsirius) #1

Is it possible to change the gradle home using gradle.properties in the %userprofile%/.gradle/gradle.properties?

(Stefan Oehme) #2

That would be a chicken-and-egg problem, because the `gradle.properties┬┤ are looked up in the Gradle user home location. You can control it through the GRADLE_OPTS environment variable though:

export GRADLE_OPTS=-Dgradle.user.home=/path/to/home

Or with the --gradle-user-home command line switch:

gradle --gradle-user-home=/path/to/home