【问题标题】:Ant based Scala compiler is deprecated不推荐使用基于 Ant 的 Scala 编译器
【发布时间】:2016-07-24 11:37:53
【问题描述】:

运行 Gradle build 显示警告,我不知道如何更改 scala 编译器,使其不基于 ant。

有人知道如何停止这些警告吗?

useAnt has been deprecated and is scheduled to be removed in Gradle 3.0. The Ant-Based Scala compiler is deprecated, please see https://docs.gradle.org/current/userguide/scala_plugin.html.
fork has been deprecated and is scheduled to be removed in Gradle 3.0. The fork option for the scala compiler is deprecated, please see https://docs.gradle.org/current/userguide/scala_plugin.html.

警告中的链接没有帮助。

【问题讨论】:

  • 您是否阅读了错误信息?也许跟随它附带的link?应该有足够的信息来解决您的问题。
  • 我在只有 scala 插件、mavenCentral 作为 repo 和 scala 2.11+ 作为依赖项的基本 HelloWorld 项目上收到此警告。后来我将锌添加为显式依赖项,并观看了 gradle 下载锌。仍在使用 ant 并发出警告。
  • @SaschaKolberg ,我也有这个问题,点击链接,发现零有用的信息。它讨论了锌编译器,但没有说明如何处理它以及如何摆脱该消息。我忽略了什么吗?
  • @cheezsteak 真丢脸!看来,这是this gradle 更改准备迁移到 zink scala 编译器的副作用。因此(据我所知)该消息将始终显示,并且现在可以安全地忽略。
  • 现在有办法摆脱这个消息吗?

标签: scala gradle


【解决方案1】:

使用最新版本的插件不会显示这些警告。

【讨论】:

    猜你喜欢
    • 2015-06-29
    • 1970-01-01
    • 2015-02-26
    • 2014-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多