I am doing this at the moment
C:\Users\kaunjovi
λ for %i in (gradle.bat) do @echo. %~$PATH:i
C:\myInstalls\gradle-4.6\bin\gradle.bat
Is there a better way?
The global properties file should be located in your home directory: On Windows: C:\Users\<you>\. gradle\gradle.
Verify Gradle Installation. Now open the command prompt. In the command prompt, enter Gradle -version. It will display the current version of Gradle just installed on the screen.
The top-level build.gradle file, located in the root project directory, defines dependencies that apply to all modules in your project.
Open Preferences -> Build, Execution, Deployment -> Gradle . Select Use local gradle distribution and specify Gradle home .
/home/<username>/.gradle/ (Linux)
/Users/<username>/.gradle/ (Mac)
C:\Users\<username>\.gradle (Windows)
If you use SDKMAN, then it will be the following
$HOME/.sdkman/candidates/
Then go to your command prompt. Run the following command to get the .gradle directory
dir /S /P .gradle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With