How to change default settings of sbt-thrift plugin in SBT? -
I am using the plugin 0.6 with the SBT 0.12 And I need to change the resource directory, source directory, output directory and other settings in my build configuration. It does not seem to work as stated in. Would anyone tell me how to do this thing? note There is a similar configuration for SBT 0.12 and sbt-saving 0.6 I SBT 0.13.1 and therefore it was used from project / plugins.sbt build.sbt With the above build configuration, you can potentially work and Can not check settings (I'm completely correct or not). to set and Please note that all settings and tasks < Code> savings config project / plugins.sbt OP asked about the multi-project creation configuration, below is the definition of two projects configured with custom values for p Roject / MyBuild .scala sbt 0.13 + sbt-thrivate 0.7
sbt-savings 0.7 .
Reserves + = "Big Taste-Jithub" "http://bigtoast.github.com/repo / "On the AD SBT plugin (" com.github.bigtoast "%" sbt-saving "%" 0.7 ")"
import com.github.bigtoast.sbtthrift.ThrterPlugin seq (ThriftPlugin.thriftSettinGS: _ *)
& gt; Savings: Use the following to change the value: source: [info] C: \ dev \ sandbox \ thrift \ src \ main \ thrift
< Code> ThriftPlugin.thriftSourceDir: = sourceDirectory.value / "my-own-source-dir"
reload so that changes in settings ( give feedback ) Accordingly:
& gt; Savings: source-directory [info] C: \ dev \ sandbox \ thrift \ src \ my-own-source-dir \ main \ thrift
SBT 0.12 + sbt-thrift 0.6
Resolver + = "Bigtoast-github Since "http://bigtoast.github.com/repo/" ADSTT plugin ("com.github.bigtoast"% "sbt-saving"% "0.6") ""
thriftSourceDir .
import sbt._ Import key ._ Import com.github.bigtoast.sbtthrift.ThrterPlugin._Improves creation of MyBuild object {Slow Valve Thrift S = Default DefaultSettings ++ thriftSettings ++ Seq (ThrivitzSOSRIR & lt; = sourceDirectory (_ / "my-own-source-dir")) Slacker Val Thift P = Project ("Thrift Project" With the configuration, the SBT Shell gives you the following: / P>
> SBT-version [information] 0.12.4, file ("."), Settings = Thrift S) & Gt; Projects [information] in the file: / Users / Jacek / Sandbox / SO / Thatti.1.12 / [information] Some other project [knowledgeable D] * Thrift project & gt; Savings: source-directory [info] / user / jacek / sandbox / so / thrift-0.12 / src / my-own-source-dir / main / thrift & gt; Thrift Project / Thrift: Source-Directory [Info] / Users / Jacek / Sandbox / SO / Thruft.0.12 / SRC / MI-Down-SOSR / IMR / Thrift & gt; Some other projects / savings: source-directory [info] / users / jacek / sandbox / so / thrift-0.12 / some-other-project / src
Comments
Post a Comment