liferay7.3.5开发学习 - 提示:Deprecated Gradle features were used in this build

打开工程后控制台出现以下提示:

liferay7.3.5开发学习 - 提示:Deprecated Gradle features were used in this build 

开发工具:Eclipse 202012

Gradle的版本:6.8.1

原因分析:说明本地环境的gradle版本太高,不支持之前的语法和特性,所以导致报错。所以我们需要修改本地的gradle版本。

解决办法:gradle-6.8.1 降低版本为 gradle-5.6.4,(Liferay7.3.5需要Gradle5.6.4+)

在Eclipse中修改,Window --> Preferences --> Gradle:

liferay7.3.5开发学习 - 提示:Deprecated Gradle features were used in this build 

关闭并重新启动Eclipse。

为了避免下载比较慢,可以在 settings.gradle 里面加入国内阿里的镜像地址:

repositories {
		maven { 
			url'http://maven.aliyun.com/nexus/content/groups/public'
		}
		maven {
			url "https://repository-cdn.liferay.com/nexus/content/groups/public"
		}		
}

如下图:

liferay7.3.5开发学习 - 提示:Deprecated Gradle features were used in this build

这时,eclipse重新下载liferay相关依赖。如下图:

liferay7.3.5开发学习 - 提示:Deprecated Gradle features were used in this build

 

另外,一台电脑上我们就一个Gradle版本,因此,GRADLE_HOME也调整为5.6.4,如下图:

liferay7.3.5开发学习 - 提示:Deprecated Gradle features were used in this build 

在命令行输入:gradle -v

liferay7.3.5开发学习 - 提示:Deprecated Gradle features were used in this build

 

上一篇:《C++程序设计语言(英文第四版)》【PDF】下载


下一篇:大数据预测实战-随机森林预测实战(一)-数据预处理