Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

0.0.7: workaround for a lein2-related issue (:without-profiles)

  • Loading branch information...
commit fdf841c5a4617f33586d71f868b1c378587e9c18 1 parent 19faec0
Michał Marczyk authored

Showing 2 changed files with 12 additions and 6 deletions. Show diff stats Hide diff stats

  1. +1 1  project.clj
  2. +11 5 src/leiningen/hooks/git_version.clj
2  project.clj
... ... @@ -1,4 +1,4 @@
1   -(defproject lein-git-version "0.0.6"
  1 +(defproject lein-git-version "0.0.7"
2 2 :description "Use git describe --tags to determine the name of (über)jars."
3 3 :dev-dependencies [[org.clojure/clojure "[1.2.0,1.3.0]"]]
4 4 :eval-in-leiningen true)
16 src/leiningen/hooks/git_version.clj
@@ -27,16 +27,22 @@
27 27 (defn replace-artifact-names-hook [task project & args]
28 28 (let [artifact-base-name (str (project :name) "-" (project ::git-version))]
29 29 (apply task
30   - (assoc project
31   - :jar-name (str artifact-base-name ".jar")
32   - :uberjar-name (str artifact-base-name "-standalone.jar"))
  30 + (vary-meta (assoc project
  31 + :jar-name (str artifact-base-name ".jar")
  32 + :uberjar-name (str artifact-base-name "-standalone.jar"))
  33 + update-in [:without-profiles]
  34 + assoc
  35 + :jar-name (str artifact-base-name ".jar")
  36 + :uberjar-name (str artifact-base-name "-standalone.jar"))
33 37 args)))
34 38
35 39 (defn replace-version-hook [task project & args]
36 40 (let [version (project ::git-version)]
37 41 (apply task
38   - (assoc project
39   - :version version)
  42 + (vary-meta (assoc project
  43 + :version version)
  44 + update-in [:without-profiles]
  45 + assoc :version version)
40 46 args)))
41 47
42 48 (defn write-version-file-hook [task project & args]

0 comments on commit fdf841c

Please sign in to comment.
Something went wrong with that request. Please try again.