【问题标题】:How to specify thrift include folder in SBT?如何在 SBT 中指定节俭包含文件夹?
【发布时间】:2013-07-23 12:03:14
【问题描述】:

我很难为 Scrooge (https://github.com/twitter/scrooge) 设置 scroogeThriftIncludeFolders。

在我的 build.sbt 中,我已经使用默认设置通过

com.twitter.scrooge.ScroogeSBT.newSettings

如何配置 scroogeThriftIncludeFolders?

【问题讨论】:

  • 您希望包含哪些目录?

标签: scala sbt scrooge


【解决方案1】:

由于我们现在包含来自其他模块/项目的 thrift 文件,因此我们使用 Scrooge 的可能性在我们的 build.sbt 中包含来自 jar(类路径)依赖项的 thrift 文件:

scroogeThriftDependencies in Compile := Seq("service-xxx-api_2.10", "service-yyy-api_2.10")

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-05-07
    • 2020-06-16
    • 2017-04-13
    • 2015-11-07
    • 1970-01-01
    • 2012-01-09
    • 2015-11-06
    • 2017-03-19
    相关资源
    最近更新 更多