Skip to content

Commit 0e1f0ca

Browse files
committed
Merge tag 'v1.0.2'
[maven-release-plugin] copy for tag v1.0.2
2 parents af7c76a + 3f936d4 commit 0e1f0ca

File tree

7 files changed

+30
-19
lines changed

7 files changed

+30
-19
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Simply add `buildversion-plugin` to your pom, executing the `set-properties` goa
2323
<plugin>
2424
<groupId>com.code54.mojo</groupId>
2525
<artifactId>buildversion-plugin</artifactId>
26-
<version>1.0.1</version>
26+
<version>1.0.2</version>
2727
<executions>
2828
<execution>
2929
<goals><goal>set-properties</goal></goals>
@@ -100,7 +100,7 @@ Example:
100100
<plugin>
101101
<groupId>com.code54.mojo</groupId>
102102
<artifactId>buildversion-plugin</artifactId>
103-
<version>1.0.1</version>
103+
<version>1.0.2</version>
104104
<executions>
105105
<execution>
106106
<goals><goal>set-properties</goal></goals>

ReleaseNotes.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release Notes - buildversion-plugin
22

3+
## v1.0.2
4+
5+
* [issue #4] Ignore newline from git --format's output
6+
7+
* Improve release scripts
8+
39
## v1.0.1
410

511
* New gitCmd option let's you specify location of 'git' command to use
@@ -8,7 +14,7 @@
814

915
* Better error handling and logging when invoking git
1016

11-
* Fix: use ${basedir} instead of "." as location for git repo.
17+
* [issue #2] Use ${basedir} instead of "." as location for git repo.
1218
This resolves problem when calling maven from within Eclipse.
1319

1420

finish-release.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# finish the release after updating release notes
3+
# Finish the release
44

55
if [[ $# -lt 1 ]]; then
66
echo "usage: $(basename $0) new-version" >&2
@@ -11,14 +11,15 @@ version=$1
1111

1212
echo "finish release of $version"
1313

14-
echo -n "commiting release notes and readme. enter to continue:" && read x \
15-
&& git add ReleaseNotes.md README.md \
16-
&& git commit -m "Updated release notes and readme for $version" \
17-
&& echo -n "Peform release. enter to continue:" && read x \
14+
echo -n "Peform release. enter to continue:" && read x \
1815
&& mvn release:clean \
1916
&& mvn release:prepare -Dgpg.keyname=02FCB552 \
17+
&& git checkout develop; git merge "release-${version}" \
18+
&& git checkout master; git merge "v${version}" \
2019
&& mvn release:perform -Dgpg.keyname=02FCB552 \
21-
#&& mvn nexus:staging-close \
22-
#&& mvn nexus:staging-promote \
23-
&& git flow release finish -n $version
20+
&& mvn nexus:staging-close \
21+
&& mvn nexus:staging-promote
22+
23+
24+
#&& git flow release finish -n $version
2425

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>com.code54.mojo</groupId>
1313
<artifactId>buildversion-plugin</artifactId>
14-
<version>1.0.1</version>
14+
<version>1.0.2</version>
1515
<packaging>maven-plugin</packaging>
1616

1717
<name>buildversion-plugin</name>
@@ -35,7 +35,7 @@
3535
<connection>scm:git:git://github.com/code54/buildversion-plugin.git</connection>
3636
<developerConnection>scm:git:ssh://[email protected]:code54/buildversion-plugin.git</developerConnection>
3737
<url>https://github.com/code54/buildversion-plugin</url>
38-
<tag>v1.0.1</tag>
38+
<tag>v1.0.2</tag>
3939
</scm>
4040

4141
<properties>

src/main/clojure/buildversion_plugin/git.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
[short-hash long-hash] (split
7272
(run-git-wait dir
7373
["log" "-n" "1" "--format=%h %H"])
74-
#" ")
74+
#"\s+")
7575

7676
versioning-properties {:build-tag "N/A"
7777
:build-version "N/A"

src/test/clojure/buildversion_plugin/test/git.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
(is checkout-OK (str "Checkout failure " (checkout :err) ))
6464

65-
(doall (map (fn [key] (is (re-find (expected-patterns key) (actual-versions key))
65+
(doall (map (fn [key] (is (re-matches (expected-patterns key) (actual-versions key))
6666
(str "Testing " key " for commit '" commit-descr "'")))
6767
(keys expected-patterns)))))
6868

@@ -94,7 +94,7 @@
9494
})
9595

9696
(assert-for-commit "dev commit 5"
97-
{:build-version #"1.1.0-SNAPSHOT-3"
97+
{:build-version #"1.1.0-SNAPSHOT-3.*"
9898
:build-tag #"^1.1.0-SNAPSHOT$"
9999
:build-tag-delta #"3"
100100
:build-tstamp #"\d+"

start-release.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ echo "Start release of $version, previous version is $previous_version"
1515
echo ""
1616
echo ""
1717

18-
git flow release start $version || exit 1
18+
git co -b "release-$version" || exit 1
19+
20+
#git flow release start $version || exit 1
1921

2022
echo ""
2123
echo ""
2224
echo "Changes since $previous_version"
23-
git log --online v$previous_version..
25+
git log --oneline v$previous_version..
2426
echo ""
2527
echo ""
26-
echo "Now edit ReleaseNotes and README"
28+
echo "Press [enter] to edit ReleaseNotes and README..."
29+
read
30+
2731

2832
$EDITOR ReleaseNotes.md
2933
$EDITOR README.md

0 commit comments

Comments
 (0)