$ sdk version ==== BROADCAST ================================================================= * 01/08/18: Kotlin 1.2.60 released on SDKMAN! #kotlin * 31/07/18: Sbt 1.2.0 released on SDKMAN! #sbt * 31/07/18: Infrastructor 0.2.1 released on SDKMAN! #infrastructor ================================================================================
================================================================================ Available Candidates ================================================================================ q-quit /-search down j-down ?-searchup k-up h-help
-------------------------------------------------------------------------------- Ant (1.10.1) https://ant.apache.org/
Apache Ant isa Java library andcommand-line tool whose mission isto drive processes described in build filesas targets and extension points dependent upon each other. The main known usage of Ant is the build of Java applications. Ant supplies anumber of built-in tasks allowing to compile, assemble, test and run Java applications. Ant can also be used effectively to build non Java applications, for instance C or C++ applications. More generally, Ant can be used to pilot any type of process which can be described in terms of targets and tasks.
================================================================================ Available Ant Versions ================================================================================ > * 1.10.1 1.10.0 1.9.9 1.9.8 1.9.7
================================================================================ + - local version * - installed > - currently in use ================================================================================
commands: install or i <candidate> [version] uninstall or rm <candidate><version> listorls [candidate] use oru<candidate> [version] default or d <candidate> [version] current orc [candidate] upgrade or ug [candidate] versionor v broadcast orb helpor h offline [enable|disable] selfupdate [force] update flush <broadcast|archives|temp>
candidate : the SDK to install: groovy, scala, grails, gradle, kotlin, etc. use listcommandfor comprehensive list of candidates eg: $ sdk list
version : where optional, defaults to latest stable if not provided eg: $ sdk install groovy
更新 SDKMAN
如果有可用的新版本,可以使用下面的命令安装:
1
$ sdk selfupdate
SDKMAN 会定期检查更新,并给出让你了解如何更新的指令。
1 2 3 4
WARNING: SDKMAN is out-of-date and requires an update.
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! exportSDKMAN_DIR="/home/sk/.sdkman" [[ -s "/home/sk/.sdkman/bin/sdkman-init.sh" ]] && source "/home/sk/.sdkman/bin/sdkman-init.sh"