File tree Expand file tree Collapse file tree 3 files changed +48
-1
lines changed
Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 1515doc
1616hs_err * .log
1717target
18+ /sample /GeoLite2-City.mmdb
19+ /sample /run.sh
1820reports
1921Test.java
Original file line number Diff line number Diff line change 11CHANGELOG
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
Original file line number Diff line number Diff line change 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/!"
You can’t perform that action at this time.
0 commit comments