Reputation: 615
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?
Upvotes: 12
Views: 34640
Reputation: 5496
May 2024
The easiest and most accurate way is to search gradle.bat
itself :
dir /b /s gradle.bat
Upvotes: 0
Reputation: 29168
/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
Upvotes: 19