Install / upgrade gradle on Mac OS X

后端 未结 5 2088
我寻月下人不归
我寻月下人不归 2020-12-22 19:49

How do I install/upgrade gradle for Mac?

5条回答
  •  生来不讨喜
    2020-12-22 19:59

    Another alternative is to use sdkman. An advantage of sdkman over brew is that many versions of gradle are supported. (brew only supports the latest version and 2.14.) To install sdkman execute:

    curl -s "https://get.sdkman.io" | bash
    

    Then follow the instructions. Go here for more installation information. Once sdkman is installed use the command:

    sdk install gradle
    

    Or to install a specific version:

    sdk install gradle 2.2
    

    Or use to use a specific installed version:

    sdk use gradle 2.2
    

    To see which versions are installed and available:

    sdk list gradle
    

    For more information go here.

提交回复
热议问题