Gradle 生成 gradlew 设置版本及属性
Gradle gradlew 大约 636 字生成 gradlew 命令
gradle wrapper
4.8 之前
// Configuring the wrapper, the old way (gradle < 4.8 )
// see https://docs.gradle.org/4.4/userguide/gradle_wrapper.html#sec:wrapper_generation
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
distributionType = Wrapper.DistributionType.BIN
}
4.8 之后
// Configuring the wrapper, the new way (since Gradle 4.8)
// see https://docs.gradle.org/current/userguide/gradle_wrapper.html#customizing_wrapper
wrapper{
gradleVersion = '5.1'
distributionType = Wrapper.DistributionType.BIN
}
参考
https://stackoverflow.com/questions/53521437/how-to-declare-gradle-version-5-0-in-build-gradle
阅读 5306 · 发布于 2019-08-30
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
MySQL 内置函数之数学函数阅读 1718
-
Git 提示 refusing to merge unrelated histories阅读 2342
-
VirtualBox 安装 Alpine Linux阅读 670
-
HTTP 携带多个 Cookie 请求阅读 2172
-
Arthas 使用 tt 命令抓取调用异常、调用耗时、传入参数、返回参数阅读 3302
-
Java 并发编程之 CopyOnWriteArrayList阅读 1381
-
Kubernetes Pod 相关命令阅读 637
-
MySQL 查询去重阅读 1992
-
设计模式之迭代器模式阅读 2439
-
Spring Boot 中 Filter 和 Interceptor 区别阅读 240