消息"依赖于打包来定义主要工件的扩展名"是什么意思?

Cen*_*giz 14 gradle

我的gradle构建输出消息

Deprecated: relying on packaging to define the extension of the main artifact is deprecated, and will not be supported in a future version of Gradle.
Run Code Online (Sandbox Code Playgroud)

这意味着什么以及如何使警告消失?

Vin*_*tin 6

如何解决这个问题在那里讨论:http: //forums.gradle.org/gradle/topics/jhuxhorn_googlemail_com-zal6c

目前,没有解决方案,该警告被称为"窃听".


Mat*_*att 0

它是说你依赖于某种它不知道的类型的工件,但它可以通过使用 pom.xml 的“打包”属性找到它。这里计划了一些增强功能,并在此处进行了描述。

  • 可以通过建议如何修复实际警告来增强这个答案。链接的资源无助于解释如何使警告消失。 (27认同)
  • 那里讨论了如何解决这个问题:http://forums.gradle.org/gradle/topics/jhuxhorn_googlemail_com-zal6c 目前,没有解决方案,据说该警告被“窃听”。 (2认同)