using scrooge in Play framework

206 Views Asked by At

when using Finagle you can place the thrift file in the directory src/main/thrift/, and when compiling it can generate thrift file automatically in the directory target/scala-2.10/src_managed/main/. How can the Play framework do the same thing automatically?

1

There are 1 best solutions below

2
On BEST ANSWER

You just need to configure the SBT plugin or the Maven plugin. Though note that this will still produce Finagle-oriented implementations - Scrooge only really supports those. (I have a pull request outstanding to add support for other kind of server implementations).