HoneyMoose
  • 首页
  • Java
  • Jersey
  • Jira
  • Confluence
  • U.S.
    • USRealEstate
    • USVisaTrack
    • H1B
  • 项目和网站
    • CWIKI.US
    • OSSEZ 社区
    • WIKI.OSSEZ.COM
    • BUG.OSSEZ.COM
    • RSS.OSSEZ.COM
BLOG.OSSEZ.COM
A responsive blog theme focused om user reading experience
  1. Home
  2. Computer Science
  3. Compile And CI
  4. This article

Gradle 6 提示有内容将会在 7 的时候被丢弃

2020年09月29日 1674Browse 1Like 0Comments

在编译的时候有下面的警告提示:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

Use ‘–warning-mode all’ to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

CONFIGURE SUCCESSFUL in 14s

 

image

 

如何进行查看和操作?

解决办法

其实这是一个比较简单的问题。

上面的提示信息已经告诉你怎么运行了。

你可以运行命令

gradlew --warning-mode all

在输出中,你可以看到下面的信息

Configure project :
The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. Consult the upgrading guide for further information: https://
docs.gradle.org/6.3/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
at build_45djmc9u5bi478od1utks361r$_run_closure1$_closure8.doCall(C:\WorkDir\Ossez-Com\USData\Source-Code\covid-19\build.gradle:53)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)

上面的内容已经很明确的告诉你存在兼容性问题的地方在哪里。

 

image

 

根据提示的内容进行修改就可以了。

上面的说明是: Please use the implementation configuration instead

你使用 implementation 配置就行了。

Tags: None
Last updated:2020年09月29日

Kratos

stay absorbed stay excellent

Like
< Previous

Comments

Cancel reply

Newest Hotspots Random
Newest Hotspots Random
IntelliJ IDEA 2023.1 版本添加了包中类的列表功能 Jenkins 修改启动的端口 Spring 项目运行提示错误 Not a managed type Linux 查看 SELinux 的状态 WordPress 网站 Error Establishing a Database Connection(建立数据库连接时出错) Linux 开启或关闭 SELinux
新冠疫情影响严重,是否应该去找中国领事馆 为什么中国人那么爱占小便宜,外国人呢 Unseasonable Snow in April Could Mess Up Your Travel Plans This Confluence 6 数据库表-杂项(Miscellaneous) Confluence 6 数据库支持的驱动 Confluence 6 管理员联系表单的后台配置界面
Categories
  • Algorithm(算法)
  • AMQP
  • Angular
  • CI
  • Compile And CI
  • Computer Science
  • Confluence
  • DataBase
  • Gradle
  • H1B
  • Hibernate
  • IDE
  • Java
  • Jersey
  • Jira
  • MariaDB
  • PrestaShop
  • Spring
  • Spring Batch
  • U.S.
  • USRealEstate
  • USVisaTrack
  • 我的小厨

COPYRIGHT © 2020 HoneyMoose. ALL RIGHTS RESERVED.

THEME CWIKIUS.CN MADE BY VTROIS