Gradle的使用
⒈下载
⒉安装
1.解压
2.添加环境变量GRADLE_HOME
指向解压缩文件的磁盘地址
3.PATH
环境变量添加%GRADLE_HOME%\bin
⒊使用阿里云仓库
1 repositories { 2 maven { 3 name "AliyunMaven" 4 url "http://maven.aliyun.com/nexus/content/groups/public/" 5 } 6 }
⒋编译
1.gradle build
2.gradlew build
⒌运行
1.java -jar
2.Application Run
3.
1)gradle bootRun
2)gradlew bootRun
⒍build.gradle
1.添加依赖
1 dependencies { 2 implementation 'org.springframework.boot:spring-boot-starter-web' 3 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' 4 testImplementation 'org.springframework.boot:spring-boot-starter-test' 5 6 }
2.指定特定的版本号
1 ext['thymeleaf.version'] = '3.0.11.RELEASE'