开始
使用本地Gradle
修改gradle/wrapper/gradle-wrapper.properties内容中distributionUrl为本地安装目录
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=/usr/local/env/gradle-6.7.1
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-
仓库配置
```java repositories { mavenLocal() mavenCentral() maven { url ‘https://maven.aliyun.com/repository/public/‘ } maven { url ‘http://maven.aliyun.com/repository/public/‘ allowInsecureProtocol = true //http需要 } }
spring boot
plugins { id ‘org.springframework.boot’ version ‘2.3.2.RELEASE’ id ‘io.spring.dependency-management’ version ‘1.0.9.RELEASE’ id ‘java’ }
打包 jar在build/libs目录下
gradle bootjar OR gradle clean bootjar ```