gradle生成gradlew设置版本及属性
gradlegradlew大约 631 字生成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
阅读 1012 · 发布于 2019-08-30
————        END        ————
扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看换一批
- Charles抓包工具下载,安装及破解阅读 467
- PHP生成重复固定随机数邀请码阅读 470
- PHP判断函数、类、方法、属性、数组中的key是否存在阅读 953
- 使用Spring Boot Admin管理Spring Boot应用阅读 530
- 软考-系统架构设计师:CISC与RISC阅读 939
- 走进Rust:流程控制阅读 259
- Redis查看大键值阅读 424
- Android揭露效果Reveal Effect阅读 409
- PHP获取毫秒值时间戳阅读 645
- java.sql.SQLDataException: ORA-01861: literal does not match format string阅读 1082