File tree Expand file tree Collapse file tree 4 files changed +40
-1
lines changed
main/clojure/buildversion_plugin
clojure/buildversion_plugin/test Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1111
1212 <groupId >com.code54.mojo</groupId >
1313 <artifactId >buildversion-plugin</artifactId >
14- <version >1.0.4 -SNAPSHOT</version >
14+ <version >1.0.5 -SNAPSHOT</version >
1515 <packaging >maven-plugin</packaging >
1616
1717 <name >buildversion-plugin</name >
4444 </properties >
4545
4646
47+ <pluginRepositories >
48+ <pluginRepository >
49+ <id >sonatype-releases</id >
50+ <url >http://oss.sonatype.org/content/repositories/releases</url >
51+ </pluginRepository >
52+ <pluginRepository >
53+ <id >clojars.org</id >
54+ <url >http://clojars.org/repo</url >
55+ </pluginRepository >
56+
57+ <!-- If you want to try SNAPSHOT versions, you need Sonatype's snapshots repo: -->
58+ <pluginRepository >
59+ <id >sonatype-snapshots</id >
60+ <url >http://oss.sonatype.org/content/repositories/snapshots</url >
61+ </pluginRepository >
62+ </pluginRepositories >
63+
4764 <profiles >
4865 <profile >
4966 <id >release-sign-artifacts</id >
Original file line number Diff line number Diff line change 6868 commit-tstamp-str (.format (SimpleDateFormat. format-str)
6969 commit-tstamp)
7070
71+ remote-scm-server
72+ (try
73+ (join " /"
74+ (butlast
75+ (split
76+ (run-git-wait dir [" ls-remote" " --get-url" ])
77+ #"/" )))
78+ (catch java.lang.RuntimeException e " " ))
79+
80+
7181 [short-hash long-hash] (split
7282 (run-git-wait dir
7383 [" log" " -n" " 1" " --format=%h %H" ])
7686 versioning-properties {:build-tag " N/A"
7787 :build-version " N/A"
7888 :build-tag-delta " 0"
89+ :remote remote-scm-server
7990 :build-tstamp commit-tstamp-str
8091 :build-commit long-hash
8192 :build-commit-abbrev short-hash }
Original file line number Diff line number Diff line change 33echo " Running $0 ..."
44TARGET_DIR=" $1 "
55
6+ git config alias.co checkout
7+ git config alias.br branch
8+ git config alias.ci commit
9+ git config alias.st status
10+
611# rm -rf $TARGET_DIR
712mkdir -p $TARGET_DIR
813cd $TARGET_DIR
@@ -16,6 +21,8 @@ git config alias.st status
1621git init
1722> README.txt
1823
24+ git remote add origin
[email protected] :MasterRepo/oov.git
25+
1926git add README.txt
2027git ci -m " Initial commit. Before any tag"
2128
Original file line number Diff line number Diff line change 8989 {:build-version #"^1.0.0-SNAPSHOT$"
9090 :build-tag #"^1.0.0-SNAPSHOT$"
9191 :build-tag-delta #"0"
92+ :remote #"[email protected] :MasterRepo" 9293 :build-tstamp #"\d +"
9394 :build-commit #"[a-f\d ]+"
9495 })
9596
9697 (assert-for-commit " dev commit 5"
9798 {:build-version #"1.1.0-SNAPSHOT-3.*"
9899 :build-tag #"^1.1.0-SNAPSHOT$"
100+ :remote #"[email protected] :MasterRepo" 99101 :build-tag-delta #"3"
100102 :build-tstamp #"\d +"
101103 :build-commit #"[a-f\d ]+"
104106 (assert-for-commit " dev commit 1"
105107 {:build-version #"^1.0.0-SNAPSHOT-1.*"
106108 :build-tag #"^1.0.0-SNAPSHOT"
109+ :remote #"[email protected] :MasterRepo" 107110 :build-tag-delta #"1"
108111 :build-tstamp #"\d +"
109112 :build-commit #"[a-f\d ]+"
113116 (assert-for-commit " Initial commit. Before any tag"
114117 {:build-version #"N/A"
115118 :build-tag #"N/A"
119+ :remote #"[email protected] :MasterRepo" 116120 :build-tag-delta #"0"
117121 :build-tstamp #"\d +"
118122 :build-commit #"[a-f\d ]+"
You can’t perform that action at this time.
0 commit comments