Skip to content

Commit 9f14c32

Browse files
committed
[issue #2] Use basedir instead of '.' as path to GIT repo
1 parent c410ea8 commit 9f14c32

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • src/main/clojure/buildversion_plugin

src/main/clojure/buildversion_plugin/mojo.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
[project {:expression "${project}"
2323
:required true
2424
:readonly true}
25+
base-dir {:expression "${basedir}"
26+
:required true
27+
:readonly true}
2528
tstamp-format {:alias "tstampFormat"
2629
:default "yyyyMMddHHmmss"
2730
:typename "java.lang.String"}
@@ -33,7 +36,7 @@
3336

3437
;; Goal execution
3538
(let [log-debug #(.debug log/*plexus-log* (str "[buildversion-plugin] " %))
36-
git-versions (git/infer-project-version "."
39+
git-versions (git/infer-project-version base-dir
3740
{:tstamp-format tstamp-format
3841
:git-cmd (or git-cmd "git")
3942
:debug-fn log-debug } )

0 commit comments

Comments
 (0)