简体   繁体   English

如何在Play2应用程序中启用sbt-scalabuff?

[英]How to enable sbt-scalabuff in a Play2 application?

I'm trying to use sbt-scalabuff to generate scala case class from proto file. 我正在尝试使用sbt-scalabuff从原始文件生成scala case类。 I have added the plugin reference into plugins.sbt file of the Play project, added runtime dependencies too. 我已经将插件引用添加到Play项目的plugins.sbt文件中,还添加了运行时依赖项。

If I do not add any settings to Build.scala referring to sbt-scalabuff then I assume that will go with default settings, expecting to find the files in src/main/protobuf. 如果我没有在Build.scala中添加任何涉及sbt-scalabuff的设置,那么我认为它将与默认设置一起使用,期望在src / main / protobuf中找到文件。

Do you know any Build.scala sample of proper settings of sbt-scalabuff? 您是否知道正确设置sbt-scalabuff的Build.scala示例?

Thanks, Gabi 谢谢,加比

我自己实际上还没有测试过sbt-scalabuff,但是您可以尝试在sbt-scalabuff github页面上提出问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM