Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Leiningen Plugin for Apache Thrift
Clojure
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/leiningen
.gitignore
README.md
project.clj

README.md

lein-thriftc

Apache Thrift Plugin for Leiningen.

endorse

Requirements

  • Apache Thrift [tested with versions >= 0.9.0]
  • Leiningen [tested with versions >= 2.0.0]

Usage

Leiningen (via Clojars)

Clojars Project

Add the artifact to the :plugins vector of your project.clj. You can make it run automatically on tasks like jar or repl using the built-in hook:

...
  :hooks [leiningen.thriftc]
...

You can customize lein-thrift's behaviour by adding a map of options to your project.clj using the :thriftc key:

...
  :thriftc {:path          "thrift"        ;; path to Thrift executable
            :source-paths  ["src/thrift"]  ;; paths to Thrift files
            :java-gen-opts "bean,hashcode" ;; options for "--gen java:<options>"
            :force-compile false}          ;; true = do not check for changes
...

(The given values are the default ones.)

Command Line

$ lein thriftc

License

Copyright © 2013-2015 Yannick Scherer

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.