3

场景:一个有多个子项目的大项目,SBT 构建定义。

rootproject/
  api/
    src/
      main/
       thrift/
         SomeService.thrift
  core/
    src/
      main/
        thrift/
         SomeModel.thrift

正确的方法是include SomeModel.thrift什么SomeService.thrift

4

1 回答 1

4

设法找到答案。路径包含按预期工作:

SomeService.thrift看起来像这样:

include ../../../../SomeModels.thrift

// And then normal IDL definitions
struct Test {
    1: required SomeModels.Model model
}
于 2014-01-01T20:57:14.033 回答