Scenario
While trying to install gradle 5.5+ from a powershell script in windows, on WSL Ubuntu 16.04, I experienced mild technical difficulties.
Attempts
- Following approach 2. of https://howtoprogram.xyz/2016/09/06/install-gradle-ubuntu-16-04/, SDKMAN would not be registred from powershell with
sdk helpeven though it would inside the WSL itself. AndRestart-Service LxssManagerfrom Rebooting Ubuntu on Windows without rebooting Windows? did not ensure SDKMAN was registered either. - https://linux4one.com/how-to-install-gradle-on-ubuntu-18-04/ required Setting up Environment Variables with
exportwhich has been challenging for me in combination with piping outputs in the past. - Same argument as in 2: https://www.vultr.com/docs/how-to-install-gradle-on-ubuntu-16-10
- https://howtoprogram.xyz/2016/09/06/install-gradle-ubuntu-16-04/ requests writing with
viwhich can be non-trivial with powershell. sudo apt install gradleinstalled gradle 2.10 instead of 5.5+.- This github instructions returned couldn't find gradle 3.1
Question
How can one automatically install gradle V5.5+ in WSL Ubuntu 16.04 from Windows with a (powershell) script?
openjdk-8-jre, but a normalapt install openjdk-8-jre, I will incorporate your suggested improvement in both the commands and the powershell script. Thank you for your suggestion, I would very much like to do so, yet I have not yet determined how to automatically installWSL Ubuntu 18.04from windows (powershell). – a.t. Aug 20 '19 at 13:06