【发布时间】:2020-04-24 07:02:03
【问题描述】:
你能帮忙解决这个问题吗?
在网站上: https://guides.gradle.org/executing-gradle-builds-on-teamcity
下载测试项目:软件
https://github.com/gradle/gradle-site-plugin.git
Cradle 安装在 3.2 版本以与项目兼容。 如果我安装了较新版本的 Gradle,那么日志中的构建错误:不兼容的 Gradle:
Error resolving plugin [id: 'com.gradle.build-scan', version: '3.2']
The buildscan plugin is not compatible with this version of Gradle.
我像这样从命令行运行构建:
./ gradle build
Git Bash 日志:
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
我的 Gradle 守护程序版本:5.4.1 构建完成后,再次出现版本不兼容的错误:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
但我输入的 Gradle 仍然是 3.2:
gradle -v
在 CMD 中。
在这个项目中: gradle-site-plugin\gradle\wrapper\gradle-wrapper.properties:
https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
可以不更新版本的build吗?
【问题讨论】:
标签: gradle