Dependencies of the generated code¶
The plain code generated by Scrooge depends on apache libthrift (version 0.10.0) and scrooge-core. You’ll need to add the following dependencies to your project, if you use maven (other build systems are similar)
<dependency>
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
</dependency>
<dependency>
<groupId>com.twitter</groupId>
<artifactId>scrooge-core</artifactId>
</dependency>
Note
We recommend using Apache Thrift 0.10.0 to ensure compatibility with Scrooge generated code.
If you specify –finagle option, you need to have the following additional dependencies
<dependency>
<groupId>com.twitter</groupId>
<artifactId>util-core</artifactId>
</dependency>
<dependency>
<groupId>com.twitter</groupId>
<artifactId>finagle-core</artifactId>
</dependency>
<dependency>
<groupId>com.twitter</groupId>
<artifactId>finagle-thrift</artifactId>
</dependency>