# SDKMAN **Repository Path**: ab-code/SDKMAN ## Basic Information - **Project Name**: SDKMAN - **Description**: SDKMAN 是用来在类Unix 系统中管理多个版本的开发环境的工具 - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/sdkman - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-04-14 - **Last Updated**: 2022-04-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SDKMAN! CLI ### The Software Development Kit Manager Command Line Interface [![Backers on Open Collective](https://opencollective.com/sdkman/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/sdkman/sponsors/badge.svg)](#sponsors) [![Slack](https://slack.sdkman.io/badge.svg)](https://slack.sdkman.io) SDKMAN is a tool for managing parallel Versions of multiple Software Development Kits on any Unix based system. It provides a convenient command line interface for installing, switching, removing and listing Candidates. See documentation on the [SDKMAN! website](https://sdkman.io). ## Installation Open your favourite terminal and enter the following: $ curl -s https://get.sdkman.io | bash If the environment needs tweaking for SDKMAN to be installed, the installer will prompt you accordingly and ask you to restart. ## Running the Cucumber Features All SDKMAN's BDD tests describing the CLI behaviour are written in Cucumber and can be found under `src/test/resources/features`. These can be run with Gradle by running the following command: $ ./gradlew test To perform development, you will need to have a JDK 8 or higher installed which can be obtained by running the following after installing SDKMAN: $ sdk install java ### Using Docker for tests You can run the tests in a Docker container to guarantee a clean test environment. $ docker build --tag=sdkman-cli/gradle . $ docker run --rm -it sdkman-cli/gradle test By running the following command, you don't need to wait for downloading Gradle wrapper and other dependencies. The test reports can be found under the local `build` directory. $ docker run --rm -it -v $PWD:/usr/src/app -v $HOME/.gradle:/root/.gradle sdkman-cli/gradle test ### Local Installation To install SDKMAN locally running against your local server, run the following commands: $ ./gradlew install $ source ~/.sdkman/bin/sdkman-init.sh Or run install locally with Production configuration: $ ./gradlew -Penv=production install $ source ~/.sdkman/bin/sdkman-init.sh ## Contributors This project exists thanks to all the people who contribute. ## Backers Thank you to all our backers! [[Become a backer](https://opencollective.com/sdkman#backer)] ## Sponsors Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/sdkman#sponsor)]