编译Spring-framework时gradle-enterprise-conventions异常的解决方法

问题现象描述

编译Spring-framework时gradle-enterprise-conventions异常,提示“Error resolving plugin [id: 'io.spring.gradle-enterprise-conventions', version: '0.0.2']”。

关键过程、根本原因分析

解析插件失败导致的问题。

结论、解决方案及效果

  1. 打开build.gradle文件。

    vim build.gradle

  2. 将第6行内容注释掉。

    //id 'io.spring.gradle-enterprise-conventions' version '0.0.2'

  3. “Esc”键,输入:wq!,按“Enter”保存并退出编辑。
  4. 重新编译Spring-framework。