2022-01-11 10:30:22 -05:00
|
|
|
(ns build
|
|
|
|
(:refer-clojure :exclude [compile])
|
|
|
|
(:require
|
|
|
|
[clojure.tools.build.api :as b]
|
|
|
|
[clojure.java.io]))
|
|
|
|
|
|
|
|
(def class-dir "target/classes")
|
|
|
|
(def basis (b/create-basis {:project "deps.edn"}))
|
|
|
|
(def jar-file "target/penpot.jar")
|
|
|
|
|
|
|
|
(defn clean [_]
|
|
|
|
(b/delete {:path "target"}))
|
|
|
|
|
|
|
|
(defn jar [_]
|
|
|
|
(b/copy-dir
|
|
|
|
{:src-dirs ["src" "resources"]
|
|
|
|
:target-dir class-dir})
|
|
|
|
|
|
|
|
(b/uber
|
|
|
|
{:class-dir class-dir
|
|
|
|
:uber-file jar-file
|
|
|
|
:main 'clojure.main
|
2023-02-10 18:52:23 -05:00
|
|
|
:exclude [#".*Log4j2Plugins\.dat$"]
|
2022-01-11 10:30:22 -05:00
|
|
|
:basis basis}))
|
|
|
|
|
|
|
|
(defn compile [_]
|
|
|
|
(b/javac
|
|
|
|
{:src-dirs ["dev/java"]
|
|
|
|
:class-dir class-dir
|
|
|
|
:basis basis
|
2022-08-01 06:07:00 -05:00
|
|
|
:javac-opts ["-source" "17" "-target" "17"]}))
|