You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB
Markdown

# grvm
1 year ago
Gradle_Version_Manager
![image](https://user-images.githubusercontent.com/56473277/229162036-e5c44612-d358-47a3-8a56-b05e954b63a8.png)
1 year ago
## 安装
1 year ago
[下载](https://github.com/forget-the-bright/grvm/releases) 下载自己需要的版本, 到自己自定义的目录 修改可执行文件名称为j
1 year ago
默认文件下载安装在用户目录下 ```.grvm```目录,目录下 ```versions```, ```downloads```, ```gradle``` 分别是本地安装目录安装包下载目录当前使用的gradle版本目录
1 year ago
将 GRADLE_HOME 配置为 ```USER_HOME\.grvm\gradle```
1 year ago
指定安装目录需要 添加环境变量 ```GRVM_HOME``` 将 GRADLE_HOME 配置为 ```GRVM_HOME\gradle```
1 year ago
## 命令
### 列出
列出所有可安装版本
```
grvm ls-remote
```
![image](https://user-images.githubusercontent.com/56473277/229162310-b2c66fdc-bd7f-4c56-bd12-c02586aedc27.png)
1 year ago
列出本地安装版本
```
grvm ls
```
![image](https://user-images.githubusercontent.com/56473277/229162099-a74e00df-38ea-432d-9871-5f31848bf1bc.png)
1 year ago
### 下载
```
grvm install 7.6.1
1 year ago
```
![image](https://user-images.githubusercontent.com/56473277/229162742-f8875d31-1977-47ac-9956-c45249144b80.png)
1 year ago
### 切换版本
```
grvm use 6.9.4
1 year ago
```
![image](https://user-images.githubusercontent.com/56473277/229162893-3f63ce42-8dd2-47ef-b1c3-eb3af9e37524.png)
1 year ago