3

Scenario: One big project with multiple sub-projects, SBT build definition.

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

What is the correct way to include SomeModel.thrift in SomeService.thrift?

JensG
  • 13,148
  • 4
  • 45
  • 55
flavian
  • 28,161
  • 11
  • 65
  • 105

1 Answers1

4

Managed to find the answer. Path inclusion works as expected:

SomeService.thrift looks like this:

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

// And then normal IDL definitions
struct Test {
    1: required SomeModels.Model model
}
flavian
  • 28,161
  • 11
  • 65
  • 105