Skip to content

Commit 9309ebf

Browse files
committed
Prepare for 1.0.1
1 parent 52efe4d commit 9309ebf

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ bin
1515
doc
1616
hs_err*.log
1717
target
18+
/sample/GeoLite2-City.mmdb
19+
/sample/run.sh
1820
reports
1921
Test.java

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CHANGELOG
22
=========
33

4-
1.X.X (201X-XX-XX)
4+
1.0.1 (2015-12-17)
55
------------------
66

77
* Several optimizations have been made to reduce allocations when decoding a

Diff for: dev-bin/release.sh

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
VERSION=$(perl -MFile::Slurp::Tiny=read_file -MDateTime <<EOF
6+
use v5.16;
7+
my \$log = read_file(q{CHANGELOG.md});
8+
\$log =~ /\n(\d+\.\d+\.\d+) \((\d{4}-\d{2}-\d{2})\)\n/;
9+
die 'Release time is not today!' unless DateTime->now->ymd eq \$2;
10+
say \$1;
11+
EOF
12+
)
13+
14+
TAG="v$VERSION"
15+
16+
if [ -n "$(git status --porcelain)" ]; then
17+
echo ". is not clean." >&2
18+
exit 1
19+
fi
20+
21+
mvn versions:display-dependency-updates
22+
23+
read -e -p "Continue given above dependencies? (y/n) " SHOULD_CONTINUE
24+
25+
if [ "$SHOULD_CONTINUE" != "y" ]; then
26+
echo "Aborting"
27+
exit 1
28+
fi
29+
30+
# could be combined with the primary build
31+
mvn release:clean
32+
mvn release:prepare -DreleaseVersion="$VERSION" -Dtag="$TAG"
33+
mvn release:perform
34+
35+
read -e -p "Push to origin? " SHOULD_PUSH
36+
37+
if [ "$SHOULD_PUSH" != "y" ]; then
38+
echo "Aborting"
39+
exit 1
40+
fi
41+
42+
git push
43+
git push --tags
44+
45+
echo "Remember to do the release on https://oss.sonatype.org/!"

0 commit comments

Comments
 (0)