aboutsummaryrefslogtreecommitdiff
path: root/build.clj
diff options
context:
space:
mode:
Diffstat (limited to 'build.clj')
-rw-r--r--build.clj25
1 files changed, 14 insertions, 11 deletions
diff --git a/build.clj b/build.clj
index 02ca14e..5535bc7 100644
--- a/build.clj
+++ b/build.clj
@@ -9,28 +9,31 @@
(def basis (b/create-basis {:project "deps.edn"}))
(def uber-file (format "target/%s-%s.jar" (name lib) version))
-(defn clean [_]
+(defn clean
+ [_]
(b/delete {:path "target"}))
-(defn aot-compile [_]
+(defn aot-compile
+ [_]
(println "Compiling AOT namespaces...")
- (b/compile-clj {:basis basis
- :src-dir ["src"]
- :class-dir class-dir
+ (b/compile-clj {:basis basis
+ :src-dir ["src"]
+ :class-dir class-dir
:ns-compile ['tubo.downloader-impl]})
(println "Compiled AOT namespaces"))
-(defn uberjar [_]
+(defn uberjar
+ [_]
(clean nil)
(aot-compile nil)
- (b/copy-dir {:src-dirs ["src/clj" "resources"]
+ (b/copy-dir {:src-dirs ["src/clj" "resources"]
:target-dir class-dir})
- (b/compile-clj {:basis basis
- :src-dir ["src"]
+ (b/compile-clj {:basis basis
+ :src-dir ["src"]
:class-dir class-dir})
(shadow/release :tubo)
(b/uber {:class-dir class-dir
:uber-file uber-file
- :basis basis
- :main 'tubo.core})
+ :basis basis
+ :main 'tubo.core})
(println "Uberjar: " uber-file))