Failed to apply plugin [id 'com.gradle.build-scan']


把spring源碼clone下來之后,使用gradle編譯不通過,異常日志如下:

FAILURE: Build failed with an exception.

* Where:
Build file 'E:\code\spring-framework-5.0.2.RELEASE\build.gradle' line: 15

* What went wrong:
An exception occurred applying plugin request [id: 'com.gradle.build-scan', version: '1.8']
> Failed to apply plugin [id 'com.gradle.build-scan']
   > This version of Gradle requires version 2.0.2 of the build scan plugin or later.
     Please see https://gradle.com/scans/help/gradle-incompatible-plugin-version for more information.

原因是gradle版本太高了,具體參考:https://docs.gradle.com/enterprise/compatibility/#build_scan_plugin

可以移步到這個網站下載:http://services.gradle.org/distributions/

Gradle Build Tool versions Minimum plugin version Maximum plugin version

>= 5.0

2.0.2

>= 2.1

4.1 - 4.10

1.8

1.16.x

4.0

1.7.4

1.16.x

2.0 - 3.5

1.0.x

1.16.x

< 2.0

not supported

not supported

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM