clojure - exclude certain clj namespaces from compilation in leiningen -
i have project works fine using lein run. want compile standalone jar using lein uberjar. however, there couple of source files in src/projectname/ directory called e.g. playground.clj , stats.clj use experimenting emacs & repl, don't want compile final project.
with make, specify files should compiled. clojure/leiningen, seems, files compiled default - how can exclude files? haven't found in leiningen docs.
i using :aot :all. place change something? again, couldn't find detailed documentation on this.
update:
the suggestions far haven't worked. has worked, however, include desired namespaces instead of excluding ones should not compiled. e.g.:
(defproject myproject "version"   ;; ...   :profiles {:uberjar {:aot [myproject.data                              myproject.db                              myproject.util]}})      
have @ leiningen's sample project.clj, describes how use :jar-exclusions or :uberjar-exclusions exclude arbitrary paths when creating jars (resp. uberjars).
  ;; files names matching of these patterns excluded jars.   :jar-exclusions [#"(?:^|/).svn/"]   ;; files names matching of these patterns included in jar   ;; if they'd skipped otherwise.   :jar-inclusions [#"^\.ebextensions"]   ;; same :jar-exclusions, uberjars.   :uberjar-exclusions [#"meta-inf/dummy.sf"]      
Comments
Post a Comment