Sbt 插件二进制不兼容 [英] Sbt plugin binary incompatibility

查看:37
本文介绍了Sbt 插件二进制不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 sbtantlr 插件并将其调整为使用 antlr v3.5.它曾经在 Scala 2.9.2 上运行良好.

I am using the sbtantlr plugin and adapting it to use antlr v3.5. It used to work fine with scala 2.9.2.

今天我将我的 Scala 升级到了 2.10.0.

Today I upgraded my scala to 2.10.0.

我在 2.10.0 中编译了插件,并将插件 'sbtantlr.jar' 放在我的主要 Scala 项目的 'lib' 目录中.

And I compiled the plugin in 2.10.0 and put the plugin 'sbtantlr.jar' in the 'lib' directory of my main scala project.

SBT 停止使用此错误消息:

SBT stopped working with this error message:

检测到插件中的二进制不兼容.

Binary incompatibility in plugins detected.

我将编译器版本恢复到 2.9.2,它工作正常.

I revert the compiler version to 2.9.2 and it works fine.

是不是因为 SBT(官方二进制版本)是用 2.9 构建的?我在哪里可以找到这些信息?

Is it because SBT (the official binary release) was built with 2.9? Where can I find the information?

推荐答案

是的,sbt 0.12.x 是用 2.9x 构建的,所有插件都需要匹配二进制 Scala 版本.

Yes, sbt 0.12.x are built with 2.9x and all plugins need to match the binary Scala version.

这篇关于Sbt 插件二进制不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆