切换不同版本的Java,Groovy,Scala,gradle,maven https://sdkman.io
天问 d177e90d58 Update 'README.md' | 1 month ago | |
---|---|---|
README.md | 1 month ago |
sdkman 构建项目,国内下载很慢。使用的是 api.sdkman.io 接口,想办法修改回国内源。
https://api.sdkman.io/2/broker/download/java/8.0.422-amzn/linux-x64
# 安装
SDKMAN_CANDIDATES_DIR="$HOME/.sdkman/candidates"
SDKMAN_SDKS_DIR="$HOME/.sdkman/sdk"
SDKMAN_MIRROR="https://maven.aliyun.com/repository/public"
export SDKMAN_CANDIDATES_API="https://api.sdkman.io/2"
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh
# echo source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk list java
sdk install java 11.0.2.hs-adpt
sdk default java 11.0.2.hs-adpt
sdk uninstall java
gradle 插件项目
./gradlew -Penv=stable clean assemble