From f87472191f74d4a3e6d9ae608f35af01b6dfc442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Som=C4=93=20Cho?= Date: Sun, 2 Jul 2023 09:35:26 +0200 Subject: [PATCH] move VERSION to resources --- VERSION | 1 - build.clj | 2 +- resources/VERSION | 1 + src/depo/core.clj | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 VERSION create mode 100644 resources/VERSION diff --git a/VERSION b/VERSION deleted file mode 100644 index c5d54ec..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.0.9 diff --git a/build.clj b/build.clj index 744a3e9..dfe42e6 100644 --- a/build.clj +++ b/build.clj @@ -4,7 +4,7 @@ [deps-deploy.deps-deploy :as dd])) (def lib 'org.clojars.some/depo) -(def version (str/trim (slurp "VERSION"))) +(def version (str/trim (slurp "resources/VERSION"))) (def jar-file (format "target/%s-%s.jar" (name lib) version)) (def class-dir "target/classes") (def url "https://github.com/somecho/depo.git") diff --git a/resources/VERSION b/resources/VERSION new file mode 100644 index 0000000..7c1886b --- /dev/null +++ b/resources/VERSION @@ -0,0 +1 @@ +0.0.10 diff --git a/src/depo/core.clj b/src/depo/core.clj index fd7eb84..b3cbe40 100644 --- a/src/depo/core.clj +++ b/src/depo/core.clj @@ -19,7 +19,7 @@ (def CONFIGURATION {:command "depo" :description "manage Clojure dependencies easily" - :version (str/trim (slurp "VERSION")) + :version (str/trim (slurp "resources/VERSION")) :opts [{:as "path to configuration file" :default nil :option "file"